Commit Graph

813 Commits

Author SHA1 Message Date
Haoqun Jiang
3b7227d544 v4.1.2 2019-12-28 20:54:27 +08:00
Kumar Gaurav
aeddc6f2c9 refactor: changed var async to isAsync (#4909)
`async` is a javascript keyword, so I suggest this variable name will be less prone to error and confusing.
2019-12-06 10:57:43 +08:00
Haoqun Jiang
6c2496418e chore: remove unused dependency "slash" 2019-12-03 23:18:11 +08:00
Haoqun Jiang
c4dc8d61c3 refactor: remove unnecessary padEnd & padStart shims
Both features are already supported in Node.js v8+
2019-12-03 23:07:47 +08:00
Haoqun Jiang
fdc7246491 chore: remove unused dependencies 2019-11-29 16:13:32 +08:00
Haoqun Jiang
1a0b59142a refactor: use dependencies from @vue/cli-share-utils whenver possible 2019-11-29 15:41:18 +08:00
Haoqun Jiang
3873d02382 chore: dependency maintenance 2019-11-29 15:15:17 +08:00
Haoqun Jiang
2ddcc65dfe v4.1.1 2019-11-27 23:14:15 +08:00
Haoqun Jiang
d316a18789 v4.1.0 2019-11-27 14:58:46 +08:00
Haoqun Jiang
44cfe78871 chore: pre release sync 2019-11-27 14:57:24 +08:00
Haoqun Jiang
84aed8ef10 chore: dependency maintenance 2019-11-27 00:34:22 +08:00
Haoqun Jiang
2652ab6a6b fix: include prereleases for assert*Version calls 2019-11-13 00:14:24 +08:00
Haoqun Jiang
1c41371a42 v4.1.0-beta.0 2019-11-09 21:49:23 +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
Roman Seidelsohn
26c48992ef fix(lib): replace "url" module with simple string split (close #4667) (#4809)
* fix(lib): replace "url" module with simple string split (close #4667)

Fixes issue #4667 by implementing the proposal https://github.com/vuejs/vue-cli/issues/4667#issuecomment-548464520
Also gets rid of a node module by using simpler code for removing eventual GET parameters

* Update packages/@vue/cli-service/lib/commands/build/formatStats.js

Co-Authored-By: Haoqun Jiang <haoqunjiang@gmail.com>
2019-11-08 18:17:58 +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
17925c6ae6 v4.0.5 2019-10-22 19:53:34 +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
d82a2bbe26 v4.0.4 2019-10-18 15:48:03 +08:00
Haoqun Jiang
0953057b22 fix: fix a typo that caused router failed to install in older versions (#4711) 2019-10-18 15:34:09 +08:00
Haoqun Jiang
aa29fd1526 v4.0.3 2019-10-17 15:59:03 +08:00
Haoqun Jiang
a759af1c2a fix: allow v3 cli to invoke vuex & router plugin from inside cli-service (#4696) 2019-10-17 15:36:53 +08:00
Haoqun Jiang
8b08c73e8e v4.0.2 2019-10-17 10:22:54 +08:00
Haoqun Jiang
dc318c5830 fix: add a compatibility layer for router & vuex for CLI v3 (#4693)
fixes #4691
2019-10-17 10:15:34 +08:00
Haoqun Jiang
81f84577e4 v4.0.0 2019-10-16 19:19:06 +08:00
Haoqun Jiang
0603f1eed9 chore: pre release sync 2019-10-16 19:18:38 +08:00
Haoqun Jiang
4de59d06ac fix(types): update css options interface to reflect v4 changes 2019-10-16 17:52:38 +08:00
Haoqun Jiang
5cce80c2f7 v4.0.0-rc.8 2019-10-11 16:11:02 +08:00
Haoqun Jiang
3fcff0268a chore: pre release sync 2019-10-11 16:08:49 +08:00
Haoqun Jiang
08d7761099 chore!: upgrade terser-webpack-plugin to 2.x (#4676)
BREAKING CHANGE:
The only real breaking change is https://github.com/webpack-contrib/terser-webpack-plugin/issues/129,
which is not likely to affect normal users.

The rest are default option values changes, which are already covered in
the default provided `terserOptions` of Vue CLI.

Note that here we choose to disable `extractComments` by default, as I
don't see enough data showing such license comments taking too much
space. The extra LICENSE file may also be confusing to some users.
2019-10-11 14:51:20 +08:00
Haoqun Jiang
01e36f30cf refactor!: use DefinePlugin (again) instead of EnvironmentPlugin (#4673)
* Revert "refactor: use EnvironmentPlugin instead of DefinePlugin"

This reverts commit 7117a096df.

* refactor: use the exported DefinePlugin
2019-10-11 13:14:24 +08:00
Haoqun Jiang
e5196f581a fix: fix redundant log messages from webpack-dev-server (#4666)
By replacing the `quiet` option with `logLevel: 'silent'`.

Fixes #4599
2019-10-10 09:59:16 +08:00
Haoqun Jiang
f5135d41a5 feat: make the minimizer config available in all modes (#4641)
As long as the `minimize` option is set to false (which is default in
production mode), the code won't be minimized. So the mode doesn't
matter when it comes to the `minimizer` config.

By exposing this config, users can simplify their custom config, by
removing the `process.env.NODE_ENV === 'production'` guard around their
custom minimizer configuration.
2019-10-07 00:14:28 +08:00
Haoqun Jiang
3b016e7901 feat: add webdriver log files to gitignore (#4644) 2019-10-04 23:28:27 +08:00
Haoqun Jiang
58592fed4e v4.0.0-rc.7 2019-10-01 23:35:39 +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
b823ca84d3 v4.0.0-rc.6 2019-09-30 20:27:57 +08:00
Haoqun Jiang
45e1e983ab chore: pre release sync 2019-09-30 20:20:35 +08:00
Haoqun Jiang
d49f784eb0 v4.0.0-rc.5 2019-09-30 18:39:52 +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
21257378d7 v4.0.0-rc.4 2019-09-25 12:31:11 +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
863d6bbfbf v4.0.0-rc.3 2019-09-10 00:05:39 +08:00
Haoqun Jiang
83d459b34c chore: pre release sync 2019-09-09 23:51:30 +08:00