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
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
Binwei Fang
4be4bb39ad
feat: implement plugin execution order ( #6411 )
2021-06-07 16:49:44 +08:00
Haoqun Jiang
dd217b2309
feat: support vue.config.mjs ( #6405 )
2021-04-13 19:26:36 +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
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
4ce7edd375
feat: use html-webpack-plugin v5 by default ( #6269 )
2021-02-10 11:17:49 +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
4378c8df26
style: replace eslint-plugin-vue-libs with standard config ( #6148 )
2021-01-06 14:29:12 +08:00
Haoqun Jiang
2dbe0be840
feat!: support and use webpack 5 as default ( #6060 )
2020-12-03 15:16:35 +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
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
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
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
Yingya Zhang
eaa2b7341f
feat: respect existing package.json ( #4827 )
2020-01-09 20:19:06 +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
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
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
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
c76d2e691d
style: add a "no-shadow" linter rule ( #4385 )
...
It has become a common source of mistakes.
For example, during PR #4363 I've referred to the wrong `options`
several times due to the variable shadowing.
2019-08-02 18:24:52 +08:00
Haoqun Jiang
2e3fa929fe
chore!: remove the already-deprecated baseUrl option ( #4388 )
2019-08-02 17:12:13 +08:00
Haoqun Jiang
a8df1df26c
fix: fix css.loaderOptions.css.modules default values ( #4363 )
...
fixes #4357
2019-07-29 22:20:53 +08:00
Haoqun Jiang
3dd3774346
chore!: move dev configs into serve command ( #4302 )
...
BREAKING CHANGE:
These configs are only meaningful when used with a running dev
server.
Technically, it is a breaking change.
For example, this breaks use cases in which a user runs their own dev
server instead of calling `vue-cli-service serve`.
2019-07-18 16:36:53 +08:00
Haoqun Jiang
78e1c4cf63
fix: fix resolve project local plugin's file path ( #4095 )
...
Thanks to @SneakyMax
See https://github.com/vuejs/vue-cli/issues/4014#issuecomment-497993827
2019-06-04 23:56:55 +08:00
Haoqun Jiang
dd377731e5
fix: should resolve to full path when setting default entryFiles
...
closes #3616
closes #3618
2019-03-12 15:53:34 +08:00
Haoqun Jiang
93f57ac4a9
fix: use an environment variable to determine the entry files to inject default polyfills ( #3565 )
...
The old logic is not reliable due to the presence of thread-loader
closes #2983
2019-03-06 00:21:46 +08:00
Haoqun Jiang
bd57f15a15
feat: support environment variable expansion ( #3534 )
2019-02-28 15:04:46 +08:00
Haoqun Jiang
f5b174ff79
feat: allow vue.config.js to return a function ( #3499 )
...
closes #3213
2019-02-28 15:03:25 +08:00
Haoqun Jiang
225b558935
refactor: use dotenv to parse env file and add a link to its docs ( #3462 )
2019-02-18 14:44:12 +08:00
Haoqun Jiang
27ffd28e7d
fix: copy publicPath option to baseUrl, fix plugin compatibility
2019-01-13 01:27:03 +08:00
KuangPF
67cff9542e
feat: support use -h show detailed usage of command
2019-01-13 01:17:06 +08:00
Haoqun Jiang
e7af0d8fa3
feat: deprecate confusing baseUrl option, use publicPath instead. ( #3143 )
...
* feat: deprecate confusing `baseUrl` option, use `publicPath` instead.
* fix: do not touch CHANGELOG.md
* docs: links referring baseUrl now changed to publicPath
2019-01-07 21:20:05 +08:00
Haoqun Jiang
7ea080b9d1
fix: should not throw when a plugin listed in optionalDependencies is not installed
...
This bug is due to `normalize-package-data` (required by `read-pkg`)
adding `optionalDependencies` to `dependencies`.
2018-10-13 00:25:42 +08:00
Jascha Lülsdorf
c73d9673dc
chore: fix typo ( #2321 ) [ci skip]
2018-09-05 14:28:38 +08:00
Evan You
6010eb22ff
test: fix tests for preserving ruleNames
2018-08-14 10:34:52 -04:00
Evan You
82ded1f648
ci: revert unintended change
2018-08-14 10:25:58 -04:00
Evan You
2257034141
fix: preserve rule names when configureWebpack is present
...
close #2206
2018-08-14 10:05:25 -04:00
Barthélémy Ledoux
d14d4e693c
fix: allow relative baseUrl other than ./ ( #2168 )
2018-08-13 12:14:18 -04:00
Vicey Wang
ce7b394560
feat: add filenameHashing option ( #1980 )
2018-07-30 15:30:30 -04:00
Evan You
e7602abf46
fix: fix absolute path for outputDir option
2018-07-26 22:13:43 -04:00
Guillaume Chau
08352811e0
feat: local service plugins, closes #1841
2018-07-13 17:39:07 +02:00
Guillaume Chau
d212dcd63e
feat: package.json: vuePlugins.resolveFrom option, closes #1815
2018-07-13 17:04:11 +02:00
Guillaume Chau
96778b2caf
chore: update main deps ( #1772 )
...
* chore: update main deps
* chore: update ts types
* chore: update generator deps versions
* fix: ts-jest
* chore: upgrade ts-jest again
* fix: re-generated yarn.lock
* chore: more upgrades
* fix: jest test matching on Windows
2018-07-08 13:56:10 +02:00
Michael Wolthers Nielsen
1b1a89fd43
fix: Fixed a bug that caused mode to be ignored if run together with watch ( #1700 )
...
* fix: Fixed a bug that caused —mode to be ignored if run together with —watch
* fix: Moved the paren that caused the expression to evaluate wrongly
2018-06-29 00:35:30 +02:00
Evan You
55e2c3eeea
test: fix NODE_ENV for tests
2018-06-10 14:42:16 -04:00
Evan You
60de7c460c
fix: fix custom mode NODE_ENV regression
...
close #1528
2018-06-09 15:05:16 -04:00
Craig Morris
7c1ef24460
fix(env): preserve existing env vars so load in reverse order. ( #1503 )
2018-06-07 10:56:30 -04:00
Evan You
85e6e5ea6c
fix: pwa plugin should be ignored when target is not app
...
close #1497
2018-06-07 10:12:22 -04:00
Evan You
7d06f09425
feat: allow configuring css-loader options via css.loaderOptions.css
...
close #1484
BREAKING CHANGE: css.localIdentName has been deprecated. Use
css.loaderOptions.css.localIdentName instead.
2018-06-07 10:10:33 -04:00