Matthijs van der Burgh
8b5ab22762
fix: remove --skip-plugin from arguments passed to the plugins ( #6972 )
...
Fixes #6971
2022-02-17 15:44:57 +08:00
Haoqun Jiang
926855fac7
feat!: make cache-loader optional ( #6985 )
2022-02-10 15:31:12 +08:00
ZHAO Jinxiang
a2b6409ce0
feat: add build stats hash support ( #6980 )
2022-02-07 19:37:10 +08:00
Haoqun Jiang
0cbdf5f15f
fix: specify vue version in the web component demo html
2022-02-07 19:21:10 +08:00
Haoqun Jiang
4580397f71
fix: use setupMiddlewares, avoid dev server deprecation warnings ( #6907 )
2022-01-12 16:46:39 +08:00
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
967f948e17
feat!: upgrade to webpack-dev-server v4 ( #6669 )
2021-09-15 16:11:19 +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
Vinsea
0f094547e1
fix(cli-service): wrong property name (typo) ( #6645 )
2021-08-24 16:38:45 +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
Haoqun Jiang
e41ef41540
chore!: drop webpack-4 support in v5 ( #6598 )
...
1. I don't think I'll ever have the capacity to keep maintaining this
compat plugin. It's better to drop it now than later.
2. The plugin is needed at the time of alpha.0 because many ecosystem
plugins does not support webpack 5. But now I don't think it will be a
major hurdle.
3. The implementation was too hacky.
2021-07-30 14:03:54 +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
Binwei Fang
4be4bb39ad
feat: implement plugin execution order ( #6411 )
2021-06-07 16:49:44 +08:00
tomica
9f2aa63453
fix: don't append slash on publicPath: 'auto' ( #6506 )
2021-06-03 21:15:51 +08:00
Kael
ca26f8cec1
fix(SafariNomoduleFixPlugin): use RawSource instead of a plain object ( #6470 )
2021-05-14 15:58:53 +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
cd6db824c7
fix: use .needsDifferentialLoading instead of .module
...
Because we now automatically skips differential loading if all targets
support es module, regardless of the `.module` flag
2021-04-25 14:18:53 +08:00
Haoqun Jiang
e661a92375
feat!: upgrade to css-minimizer-webpack-plugin v2 ( #6420 )
2021-04-16 19:37:51 +08:00
Haoqun Jiang
0aa8a55189
feat!: always inject safari-nomodule-fix as an external script; drop --no-unsafe-inline flag ( #6422 )
2021-04-16 19:23:21 +08:00
Haoqun Jiang
aad72cfa78
feat: only needs one bundle if all targets support es module ( #6419 )
2021-04-16 16:36: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
Haoqun Jiang
cd78376675
feat!: turn on modern mode by default, and provide a --no-module option ( #6416 )
2021-04-14 14:57:28 +08:00
Haoqun Jiang
dd217b2309
feat: support vue.config.mjs ( #6405 )
2021-04-13 19:26:36 +08:00
Binwei Fang
8654e8218d
fix(cli-service): respect the existing 'devtool' ( #6402 )
...
Respect the existing 'devtool' when running dev server
Fixes #6398
2021-04-07 17:58: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
Haoqun Jiang
d64e7d3158
feat: when transpileDependencies is set to true, transpile all dependencies in node_modules ( #6354 )
2021-03-24 14:04:43 +08:00
Haoqun Jiang
54d5f78c34
feat: a defineConfig API from @vue/cli-service for better typing support in vue.config.js ( #6355 )
2021-03-24 13:56:32 +08:00
Yazhe Wang
20355435e7
fix(build): demo-lib.html Vue 3 compatibility ( #6366 )
2021-03-22 16:07:18 +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
7c580b8f0b
fix: fix build --dest option ( #6314 )
...
Closes #6312
2021-03-10 13:28:33 +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
4d134066b4
fix: better dev server & webpack 4 compatibility and some trivial dependency updates ( #6291 )
2021-02-19 15:07:31 +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
Binwei Fang
b9e2f70f07
fix(cli-service): avoiding recreating dist directory ( #6221 )
2021-01-25 16:20:17 +08:00
Kristoffer K
b69697ebba
fix(cli): resolve plugins relative to the package context ( #5794 )
...
Co-authored-by: Haoqun Jiang <haoqunjiang@gmail.com >
2021-01-22 15:52:12 +08:00
Haoqun Jiang
45aca819d1
fix: "commonjs2" target should not be used with "output.library" ( #6218 )
...
Closes #6188
2021-01-21 10:27:48 +08:00