Commit Graph

490 Commits

Author SHA1 Message Date
Haoqun Jiang 90d3dfc74e chore!: some trivial dependency major version updates (#5951) 2020-10-15 15:47:45 +08:00
Haoqun Jiang bedf5bacba chore: show error message that the wc target with Vue 3 isn't supported yet (#5906) 2020-09-29 13:19:22 +08:00
Haoqun Jiang eda18b0542 fix: shouldn't remove attribute quotes in HTML (#5899) 2020-09-27 16:35:30 +08:00
Haoqun Jiang 9e5b16b001 fix: enable some syntax extensions by default for vue script compiler (#5868) 2020-09-10 19:46:23 +08:00
Haoqun Jiang 7458103822 fix: ensure Dev Tool is enabled in Vue 3 runtime (#5788)
The old alias `@vue/runtime-dom` was introduced because webpack HMR has
trouble with pure re-exports. Now that the `vue.runtime.esm-bundler.js`
file also includes a call to `initDev`, it's no longer an issue. This
also enables Dev Tool in Vue 3 runtime.

Fixes #5785
2020-08-15 00:38:37 +08:00
Blacate 0146001f7d fix: mayProxy.isPublicFileRequest judgment (#5693) 2020-08-15 00:28:43 +08:00
Haoqun Jiang 8cf3745ef9 fix: load vue from @vue/cli-service-global on vue serve/vue build (#5774) 2020-08-11 16:53:44 +08:00
Necmettin Karakaya 5baec1fdc5 chore: fix common misspelling errors (#5694)
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com>
2020-08-10 01:17:01 +08:00
Haoqun Jiang 8dceddb6a6 chore: use stdout.columns to determine the stats table width (#5754)
closes #5749
2020-08-06 16:19:33 +08:00
Yazhe Wang de3d0622bb refactor(cli-service): webpack devtool option (#5735)
Close: #5729
2020-08-02 12:03:11 +08:00
Haoqun Jiang b1772cadd2 feat: allow choosing vue version on creation (and in presets) (#5637) 2020-07-24 18:54:15 +08:00
Bogdan Luca ddabb6679e fix: fix kubernetes container detection (#5681) 2020-07-19 21:36:56 +08:00
Haoqun Jiang 8600585481 feat: detect and compile Vue 3 projects (#5570) 2020-06-24 15:09:28 +08:00
dtcz 326934e084 fix: polyfill injection when building app on multiple threads (#5592) 2020-06-22 17:05:04 +08:00
Haoqun Jiang 66370e82c4 fix: fix an edge case that VUE_CLI_SERVICE_CONFIG_PATH might be ignored (#5598)
Though, it is still a bad practice to use `VUE_CLI_SERVICE_CONFIG_PATH`
in a project with `vue.config.js`

closes #5584
2020-06-22 16:26:33 +08:00
dtcz dcfb0bdbc9 fix(cli-service): fix polyfill injection when overriding entry with the CLI option
Fixes #5508
2020-06-02 21:29:28 +08:00
yazhe wang 36f961e43d fix(cli-service): process the webpack failed hook in the serve command (#5542)
fixes #4891
2020-06-02 15:12:58 +08:00
Haoqun Jiang 01d4bea0c5 fix: should throw errors if there is bad require() in vue.config.js (#5500)
reverts #5305
this makes the tests a little more tedious, need to find a better way
to test these functionalities

fixes #5442
2020-05-19 22:16:59 +08:00
Albert Brand 96dfd581b6 fix(serve): pass devServer sockPath properly to client (#4800)
closes #4400
closes #4430
2020-05-14 19:44:12 +08:00
Adrian B. Danieli c64afc3c2a feat(cli-service): add stdin flag to build (#5376) 2020-05-08 16:28:16 +08:00
simon3000 4225c30e36 feat: support vue.config.cjs (#5293)
* chore: Update yarn.lock

* feat: support vue.config.cjs

* fix: vue.config.js prior than cjs

* chore: merge upstream
2020-03-31 18:10:12 +08:00
Haoqun Jiang ebcee9a32c fix: spawn scripts with node, fix modern mode with Yarn 2 (Berry) (#5320)
See https://github.com/yarnpkg/berry/issues/964#issuecomment-587425891
2020-03-27 17:02:23 +08:00
Haoqun Jiang f1bdf7319a refactor: simplify config loading by skip fs.existsSync check (#5305)
Use error code thrown by `require` directly.
This also simplifies module mocking in unit test.
2020-03-24 15:24:52 +08:00
Haoqun Jiang 5b1709abf0 fix(target-lib): fix dynamic public path in a dynamic chunk in Firefox (#5247)
* fix(target-lib): fix dynamic public path in a dynmaic chunk in Firefox

* fix: fix typo

* feat: use external dependency `@soda/get-current-script`

* fix: const -> var, as the `setPublicPath` file is not transpiled
2020-03-23 16:13:55 +08:00
Jadranko Dragoje db64c5b400 feat: wc entry accepts multiple file patterns splited by ',' (#3886) 2020-03-21 21:39:40 +08:00
Haoqun Jiang 5bf6051b75 fix: vue-template-compiler can be optional if @vue/compiler-sfc presents (#5123) 2020-01-30 20:38:39 +01:00
Haoqun Jiang d11ecc2151 fix: correctly calculate cacheIdentifier from lockfiles (#5113)
* fix: correctly calculate cacheIdentifier from lockfiles

follow up of #3865
fixes #4438

* Revert "fix: correctly calculate cacheIdentifier from lockfiles"

This reverts commit dbce88b7cc.

* fix: should take all configFiles and lockfiles into account

The previous implementation is based on the assumption that config files
have precendences, e.g. `.eslintrc.js` will take higher precendence
over `.eslintrc`, and only one will take effect.

This is not accurate however. For example, babel relies on both babel
config and browserslist config, so we need to deal with 2 config files.
2020-01-30 20:36:56 +01:00
Maël Nison 8fcea225b7 feat: adds transparent PnP support to Webpack (#4953)
* feat: adds transparent PnP support to Webpack

* fix: add the plugin name

* fix: now pass tests
2020-01-19 08:18:37 +05:30
Haoqun Jiang bc3e4af3c0 refactor: use the title option in the html template, instead… (#5060)
closes #5056
2020-01-13 19:34:41 +05:30
Bogdan Luca 7b17d6132c fix: use a single websocket connection for HMR (#5069)
* fix(hmr-websocket): add failing test

* fix(hmr-websocket): set injectClient to false, as we inject our own client

* fix(hmr-websocket): change test project name
2020-01-13 21:20:53 +08:00
Marcel Lindig fff9caaca5 feat(cli): add stdin flag to serve (#2411)
* feat(cli): add stdin flag to serve

* add back --public help

* reorder help
2020-01-10 18:12:01 +08:00
Yingya Zhang eaa2b7341f feat: respect existing package.json (#4827) 2020-01-09 20:19:06 +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 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 1a0b59142a refactor: use dependencies from @vue/cli-share-utils whenver possible 2019-11-29 15:41:18 +08:00
Haoqun Jiang 2652ab6a6b fix: include prereleases for assert*Version calls 2019-11-13 00:14:24 +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
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 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 e63bf6122b fix: avoid accidentally overriding sass config with scss configs (#4637) 2019-10-01 23:30:15 +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 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 59d6a7c856 docs: rephrase the upgrade notice 2019-09-09 23:01:39 +08:00
Haoqun Jiang 8cc9ea5f81 fix: pause & resume spinners elegantly 2019-09-09 17:23:47 +08:00
Haoqun Jiang af17a9b49f feat: support sass-loader v8 2019-09-09 17:23:21 +08:00