Commit Graph

209 Commits

Author SHA1 Message Date
Haoqun Jiang 5d6b9d336e fix: [ext] in asset modules already contains a leading dot (#6826) 2021-11-15 19:14:23 +08:00
Haoqun Jiang 60140af5ba feat!: remove @vue/compiler-sfc from peer dependencies (#6808) 2021-11-05 14:36:48 +08:00
Haoqun Jiang f986340973 fix: set hashFunction to xxhash64 to fix Node 17 compatibility (#6781) 2021-10-25 22:24:03 +08:00
Haoqun Jiang 9eef87799e feat!: remove url-loader and file-loader in favor of asset modules (#6771) 2021-10-23 09:54:46 +08:00
FM 9aeafc06bb feat: add a top-level terser option to allow users to customize the minifier (#6752) 2021-10-22 19:03:38 +08:00
Evan You 3f0b782bca Revert "feat: define __VUE_SSR__ flag"
This reverts commit fcf7598ec1.
2021-09-23 14:03:05 -04:00
Evan You fcf7598ec1 feat: define __VUE_SSR__ flag 2021-09-23 13:02:46 -04:00
zj9495 7527271feb fix(cli-service): skip minimization of public folder (#6700) 2021-09-22 11:16:03 +08:00
Haoqun Jiang c30ebdc81a fix: avoid copy-webpack plugin errors in modern mode (#6665) 2021-09-01 17:15:43 +08:00
David Kubeš 88313fd885 refactor: remove redundant Webpack version checks (#6638) 2021-08-31 15:43:18 +08:00
Haoqun Jiang 17a0c3708c fix: mark sideEffects: true for styles in Vue components (#6597)
See discussions at https://github.com/vuejs/vue-loader/issues/1435
2021-07-30 14:04:21 +08:00
Muhammadamin 566c803a49 feat(cli-service): add support new image format avif (#6530) 2021-06-23 15:31:50 +08:00
Haoqun Jiang 820b9b7826 chore: use scoped package names for aliases (#6519) 2021-06-09 08:37:05 +08:00
Thomas Timmers 3bb2d84045 feat: add "tags" part to htmlWebpackPlugin (#6472)
Add it for use-cases like https://github.com/jantimon/html-webpack-plugin/tree/main/examples/custom-insertion-position
2021-05-14 15:39:26 +08:00
Haoqun Jiang e661a92375 feat!: upgrade to css-minimizer-webpack-plugin v2 (#6420) 2021-04-16 19:37:51 +08:00
Haoqun Jiang 8a3dfa4bca fixup! fix: disable realContentHash optimization in app target 2021-04-14 23:52:01 +08:00
Haoqun Jiang 448ab961b4 fix: disable realContentHash optimization in app target
It's messing with the html-webpack-plugin, telling it the wrong hash of
the legacy bundle, therefore making the modern mode fallback unusable.

(TODO: add a test later)
2021-04-14 23:41:19 +08:00
叡山电车 de175d4f8e feat(cli-service): add inline loader support for html-webpack-plugin (#5997)
Close #2697
2021-04-05 21:37:51 +08:00
Haoqun Jiang fa46ed47b6 fix: check hoisted postcss version (#6372)
Also reverts #6358
2021-03-24 20:28:19 +08:00
Péter Gaál e960ae5caf fix: Do not display an error message on empty public folder (#6333)
copy-webpack-plugin will generate an error on missing file(s). 

For SPA, error occurs If 'public' folder only contains index.html or 'public' folder is empty.
2021-03-15 11:53:29 +08:00
Haoqun Jiang 985f2ff8d1 chore: remove preload plugin from deps for now
We are not going to add it back anytime soon. So removing it help
reduces the bundle size.

Though webpack 5 and html-webpack-plugin 5 support was added to
the plugin, there are still tests to be done for compatibility with
the new default configurations.
For example, we need to see how the new `defer` option affects the
result.
2021-03-12 14:54:24 +08:00
Haoqun Jiang f4fb99de97 feat!: upgrade to css-loader 5; remove css.requireModuleExtension & css.modules options (#6332) 2021-03-10 00:05:02 +08:00
Haoqun Jiang 0dccc4af38 feat!: update copy & terser plugin, move more legacy code to webpack-4 plugin (#6279) 2021-02-18 14:37:45 +08:00
Haoqun Jiang 4ce7edd375 feat: use html-webpack-plugin v5 by default (#6269) 2021-02-10 11:17:49 +08:00
Veath b41ed76c5c fix: mini-css-extract-plugin publicPath option can be an absolute path (#6230)
When the user sets the project public path to the absolute path, the extract-css publicPath option should be changed accordingly
2021-01-27 21:33:42 +08:00
Haoqun Jiang c711516125 feat!: bump default sass-loader version to v10, drop sass-loader v7 support (#6187) 2021-01-10 19:04:39 +08:00
Haoqun Jiang 4378c8df26 style: replace eslint-plugin-vue-libs with standard config (#6148) 2021-01-06 14:29:12 +08:00
Haoqun Jiang e22d7f867a fix: fix title injection of the generated html file 2020-12-14 16:39:27 +08:00
Haoqun Jiang 4de8c99603 refactor!: replace optimize-cssnano-plugin with css-minimizer-webpack-plugin (#6140) 2020-12-14 09:36:43 +08:00
Yazhe Wang 7e42890394 chore!: bump stylus-loader from v3 to v4 (#6130) 2020-12-09 15:10:23 +08:00
Haoqun Jiang 89b0377c4f feat!: upgrade postcss-loader, using postcss 8 by default (#6108) 2020-12-08 13:21:37 +08:00
Haoqun Jiang 2dbe0be840 feat!: support and use webpack 5 as default (#6060) 2020-12-03 15:16:35 +08:00
Binwei Fang 2373df1630 fix: using lang attribute with empty string in html template (#5992)
Fixes #5945

`lang="en"` may be wrong to users, use empty string instead. See : https://github.com/h5bp/html5-boilerplate/issues/1542
2020-10-26 16:23:09 +08:00
Haoqun Jiang 90d3dfc74e chore!: some trivial dependency major version updates (#5951) 2020-10-15 15:47:45 +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
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 b1772cadd2 feat: allow choosing vue version on creation (and in presets) (#5637) 2020-07-24 18:54:15 +08:00
Haoqun Jiang 8600585481 feat: detect and compile Vue 3 projects (#5570) 2020-06-24 15:09:28 +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
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
Haoqun Jiang 1a0b59142a refactor: use dependencies from @vue/cli-share-utils whenver possible 2019-11-29 15:41:18 +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 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