Commit Graph

200 Commits

Author SHA1 Message Date
Haoqun Jiang
44cfe78871 chore: pre release sync 2019-11-27 14:57:24 +08:00
Haoqun Jiang
3094ae623f chore: pre release sync 2019-11-09 21:48:23 +08:00
Haoqun Jiang
63257931bc fix: don't prepend publicPath with slash (#4816)
fixes #3338
fixes #4184

Actually I don't know why the slash was added in the first place, seems
extraneous to me.
2019-11-09 15:07:39 +08:00
Haoqun Jiang
9ebc2ab3e9 feat: enable postcss+autoprefixer by default internally, reducing boilerplate (#4798)
This also fixes the issue with Yarn PnP that requires `autoprefixer` to
be explicitly listed in the user's project dependency.
2019-11-07 09:28:44 +08:00
Haoqun Jiang
759d77fd5c refactor: use babel overrides to transpile babel runtime helpers (#4777)
* refactor: use babel overrides to transpile babel runtime helpers

As recommended in babel/babel#9903.
Get rid of the module-resolver plugin, may fix #3928.
Seems to have fixed #4742 as well.

There may be a small breaking change: as we now use `excludes` & `includes`, babel requires `filename` option to be present (introduced in https://github.com/babel/babel/pull/10181/files). So users who call `babel.transformSync` directly may encounter an error.

However, as we explicitly stated that this preset is only used for Vue CLI internally, I don't expect too many such use cases there. And the error messages are clear enough.
Considering the benefits that this PR brings, I think it's an acceptable tradeoff.


 test: update tests for babel

* test: fix windows tests

* test: remove unused variables

* fix: fix scope package paths on Windows

* test: wait some time in router tests in case dom hasn't updated in time
2019-11-04 16:29:06 +08:00
Maël Nison
0a5c79be52 Enforces require.resolve for loaders (#4532)
* Enforces require.resolve for loaders

* Updates the lockfile

* Fixes more things

* Adds an extra check

* test(loaders): fix the tests

* style(cli): fix the linting

* style(cli): fix the linting (on windows)

* Update package.json

* Updates the lockfile

* chore: sync dependency versions

* chore: sync dependency versions

* chore: don't introduce unnecessary changes in yarn.lock

* extraneous space
2019-11-04 16:26:33 +08:00
Haoqun Jiang
86c500fd4b chore: dependency maintenance (#4734)
* chore: dependency maintenance

* Revert "test: replace `waitForFunction` with `waitForXPath`"

This reverts commit b2848aeeaf.
2019-10-21 20:13:21 +08:00
Haoqun Jiang
0603f1eed9 chore: pre release sync 2019-10-16 19:18:38 +08:00
Haoqun Jiang
3fcff0268a chore: pre release sync 2019-10-11 16:08:49 +08:00
Haoqun Jiang
6dcc62740f chore: pre release sync 2019-10-01 23:34:00 +08:00
Haoqun Jiang
e63bf6122b fix: avoid accidentally overriding sass config with scss configs (#4637) 2019-10-01 23:30:15 +08:00
Haoqun Jiang
45e1e983ab chore: pre release sync 2019-09-30 20:20:35 +08:00
Haoqun Jiang
29d070ca75 chore: pre release sync 2019-09-30 18:35:59 +08:00
Haoqun Jiang
ebdb142a4b fix: fix sassOptions merging for scss syntax in sass-loader v8 (#4631)
fixes #4630
2019-09-30 14:02:48 +08:00
Haoqun Jiang
4f009cdb60 chore: pre release sync 2019-09-25 12:30:25 +08:00
Haoqun Jiang
cb740ae268 fix: correctly ignore html templates in copy-webpack-plugin (#4613)
Fixes #3597.
Fixes #4299.
2019-09-25 00:19:25 +08:00
Haoqun Jiang
83d459b34c chore: pre release sync 2019-09-09 23:51:30 +08:00
Haoqun Jiang
af17a9b49f feat: support sass-loader v8 2019-09-09 17:23:21 +08:00
Haoqun Jiang
0c5d740202 chore: pre release sync 2019-09-08 11:52:11 +08:00
Haoqun Jiang
522a0f8d03 test: set a really long timeout for HMR tests 2019-09-07 13:07:15 +08:00
Haoqun Jiang
4aba6e1573 test: catch timeout errors for HMR tests in AppVeyor 2019-09-07 00:14:24 +08:00
Haoqun Jiang
b2848aeeaf test: replace waitForFunction with waitForXPath 2019-09-06 23:21:52 +08:00
Haoqun Jiang
07b207e527 chore: pre release sync 2019-09-04 16:19:01 +08:00
Haoqun Jiang
2622f8d3f7 test: use page.waitForFunction for HMR testing 2019-09-04 15:34:57 +08:00
Haoqun Jiang
5bbf0b40d3 chore: pre release sync 2019-08-21 17:42:56 +08:00
Thorsten Lünborg
fba2ad0606 feat: --skip-plugins (#4448)
Allow skipping of plugins  from command line

close #4262
close #3830
2019-08-21 15:38:01 +08:00
Roman Pavlov
86f4f5fceb feat(build): add --inline-vue flag to optionally disable externalization of Vue (#4261)
Resolves #4055.
2019-08-19 21:05:46 +08:00
Haoqun Jiang
497fd5aa1f test: increase waiting time before checking hot updates
As the performance of AppVeyor build environment is quite poor.
2019-08-19 20:05:47 +08:00
Daan Roet
428d1720fe feat: upgrade webpack (#4253) 2019-08-12 21:58:58 +08:00
Haoqun Jiang
14bd985cc1 chore: pre release sync 2019-08-08 11:09:15 +08:00
Haoqun Jiang
e9fd9a716c feat!: deprecate css.modules in favor of css.requireModuleExtension (#4387)
closes #4376

Since css-loader v3, custom CSS Modules configurations are under the
`modules` field. So when a user customizes these configurations, the `modules`
feature is automatically enabled for all css files.
So we must require the user's explicit consensus or disagreement on whether
these rules apply to all CSS files or not.
2019-08-02 21:14:39 +08:00
Haoqun Jiang
930b4596b1 feat: allow configuring scss options separately from sass (#4386)
closes #4116
2019-08-02 19:45:12 +08:00
Haoqun Jiang
2e3fa929fe chore!: remove the already-deprecated baseUrl option (#4388) 2019-08-02 17:12:13 +08:00
Haoqun Jiang
4b2cc4afa3 chore: pre release sync 2019-07-30 00:22:03 +08:00
Haoqun Jiang
59be3ba5ce chore: pre release sync 2019-07-25 10:36:38 +08:00
Haoqun Jiang
2d59c9676c fix: fix css modules configuration in css-loader v3 (#4345)
fixes #4337
2019-07-25 09:56:04 +08:00
Haoqun Jiang
6cb28f5911 chore: pre release sync 2019-07-22 22:21:24 +08:00
Mewes Kochheim
de9748a5a5 fix: do not introduce extra level of directory when building lib for scope packages (#4320)
This fixes references to static assets in the bundled script.

Fixes #4311
2019-07-22 19:47:22 +08:00
Haoqun Jiang
7dbf3cefc0 chore: pre release sync 2019-07-14 23:09:36 +08:00
Haoqun Jiang
dc7cb4cae0 chore: pre release sync 2019-07-06 19:50:00 +08:00
Pavan Kumar Sunkara
362587a966 feat!: make vuex a separate plugin (#4242)
fixes #2335, #4024
2019-07-06 15:13:09 +08:00
Min ho Kim
c0aa2bb310 Fix typos (#4241) 2019-07-06 07:09:29 +03:00
Pavan Kumar Sunkara
246ae678cb feat!: make router a separate plugin (#4196)
* refactor: move router to its own plugin

* refactor: rename routerHistoryMode option to historyMode

* test: add @vue/cli-plugin-router tests

* feat: change src/router.js for most common use cases

* fix: fix cli-ui tests

* docs: Remove router root option from docs

* fix: add support for legacy router option
2019-07-05 23:21:29 +08:00
Haoqun Jiang
2386673e86 chore: pre release sync 2019-07-04 09:06:29 +08:00
Haoqun Jiang
1939dfea9d chore: pre release sync 2019-07-03 15:41:08 +08:00
Haoqun Jiang
7bd8796227 chore: pre release sync 2019-05-25 17:46:04 +08:00
Haoqun Jiang
3648a51a91 test: replace http-server with serve to create a test server (#4056)
Fixes Windows compatibility caused by https://github.com/indexzero/http-server/issues/525

And, serve is better maintained than http-server or ecstatic.
2019-05-25 13:32:32 +08:00
Haoqun Jiang
15b5c8d4d7 chore!: change default value of lintOnSave option (#3975)
BREAKING CHANGE:
See https://github.com/vuejs/vue-cli/pull/3572
2019-05-14 11:20:20 +08:00
Haoqun Jiang
e376c00b26 test: skip version comparison test (for now) 2019-05-01 01:16:10 +08:00
Haoqun Jiang
6f5ca3078a test: fix assertVersion test for prereleases 2019-05-01 01:02:42 +08:00