Commit Graph

432 Commits

Author SHA1 Message Date
Haoqun Jiang a8df1df26c fix: fix css.loaderOptions.css.modules default values (#4363)
fixes #4357
2019-07-29 22:20:53 +08:00
李枨煊 42ecd08d35 fix: fix stats display when chunkFilename contains query string (#4359) 2019-07-29 15:35:12 +08:00
yiliang a2856a750c chore(cli-service): word spelling in comments (#4367) 2019-07-28 20:39:42 +08:00
Haoqun Jiang 2d59c9676c fix: fix css modules configuration in css-loader v3 (#4345)
fixes #4337
2019-07-25 09:56:04 +08:00
Mewes Kochheim de9748a5a5 fix: do not introduce extra level of directory when building lib for scope packages (#4320)
This fixes references to static assets in the bundled script.

Fixes #4311
2019-07-22 19:47:22 +08:00
Haoqun Jiang e2e3469a18 chore!: ensure consistent directory structure for all modes (#4323)
BREAKING CHANGE:
Changing directory strcuture, though now becoming more intuitive, may
still break users' workflows, so it's considered a breaking change.

Fixes #4215.
Fixes #3767.
Fixes #4234
2019-07-21 20:00:31 +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
shadow-light 9faddce63f fix: indexPath should also affect non-production builds (#4057)
fixes #2327
fixes #4247
2019-07-14 22:39:31 +08:00
shadow-light 52ae1c8a9b fix!: make webpack use values consistent (#4230)
The use key is `pug-plain` despite a similar item above it using the key `pug-plain-loader`. This just makes them consistent.
2019-07-14 22:22:59 +08:00
Pavan Kumar Sunkara 362587a966 feat!: make vuex a separate plugin (#4242)
fixes #2335, #4024
2019-07-06 15:13:09 +08:00
Min ho Kim c0aa2bb310 Fix typos (#4241) 2019-07-06 07:09:29 +03:00
Pavan Kumar Sunkara 246ae678cb feat!: make router a separate plugin (#4196)
* refactor: move router to its own plugin

* refactor: rename routerHistoryMode option to historyMode

* test: add @vue/cli-plugin-router tests

* feat: change src/router.js for most common use cases

* fix: fix cli-ui tests

* docs: Remove router root option from docs

* fix: add support for legacy router option
2019-07-05 23:21:29 +08:00
Leon Liu 76e7c38fc8 fix: prefer devServer.public as the custom url for browser to open (#4169)
fixes #3747
2019-06-19 19:23:44 +08:00
Haoqun Jiang f3d2c1c133 fix: display correct address when multiple network adapters present (#4083)
fixes #3266

see https://github.com/vuejs/vue-cli/issues/3266#issuecomment-493487325

Thanks to @shenliangv
2019-06-04 23:57:31 +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
Sanapoint 顼轩 47d56e998d fix(cli-service): avoid opening browser twice
fixes #4079
2019-05-30 17:01:27 +08:00
Haoqun Jiang d81d57beec fix: fix dev mode compatibility with workers (#4034)
fixes #3539
2019-05-21 22:19:57 +08:00
Haoqun Jiang 80028755f8 fix: update the css-loader runtime path for css-loader v2 (#4025) 2019-05-19 21:04:15 +08:00
Francisco edcce6a311 chore(dev-server): set clientLogLevel option to silent (#4018)
The `none` option is deprecated and will be removed in the next major https://github.com/webpack/webpack-dev-server/pull/1901/files
2019-05-18 16:55:56 +08:00
achretien 59b106ad04 feat: enable hmr for 'mini-css-extract-plugin' in dev (#4011) 2019-05-17 16:33:23 +08:00
Haoqun Jiang 15b5c8d4d7 chore!: change default value of lintOnSave option (#3975)
BREAKING CHANGE:
See https://github.com/vuejs/vue-cli/pull/3572
2019-05-14 11:20:20 +08:00
Haoqun Jiang 341286b708 chore: remove extraneous log statement 2019-05-04 00:27:57 +08:00
Haoqun Jiang 2ec3fca99a feat!: upgrade to webpack-chain v5 (#3913) 2019-04-30 10:31:17 +08:00
Haoqun Jiang dfe3987d9f feat!: enable splitChunks by default even in development mode (#3863)
BREAKING CHANGE:
This changes the output directory structures for development mode
(app.js -> index.js + chunk-common.js + chunk-vendors.js).
By enabling splitChunks by default, the memory usage of webpack may be
greatly reduced for large multi-page projects.

This commit fixes #3838
May also fix #2991
2019-04-30 10:18:32 +08:00
Haoqun Jiang 678bfc6b2d feat!: set whitespace: 'condense' for template compiler (#3853)
BREAKING CHANGE:
Detailed explanation: https://github.com/vuejs/vue/issues/9208#issuecomment-450012518

Take the following template as example:
```
<p>
  Welcome to <b>Vue.js</b> <i>world</i>.
  Have fun!
</p>
```

With `preserveWhitespace: false`, it was compiled as:
```
<p> Welcome to <b>Vue.js</b><i>world</i>. Have fun! </p>
```

With `whitespace: 'condense'`, it is now compiled as:
```
<p> Welcome to <b>Vue.js</b> <i>world</i>. Have fun! </p>
```

Note the **inline whitespace between tags** is preserved.

Closes #1020
2019-04-30 10:18:03 +08:00
Haoqun Jiang f5a1950fd2 refactor!: use EnvironmentPlugin instead of DefinePlugin (#3782)
BREAKING CHANGE:
This change breaks use cases where users have tapped the `define`
plugin options in `chainWebpack`

fixes #3579
2019-04-30 10:17:40 +08:00
Haoqun Jiang a3e0858105 feat: add .version field and assertVersion helper to plugin api (#3861)
partially addresses #2336 (GeneratorAPI TBD)
2019-04-28 13:45:00 +08:00
Haoqun Jiang a351cbadb8 feat: allow parallel option to be an integer (#3864)
closes #3850
2019-04-27 20:11:16 +08:00
Haoqun Jiang b082da83e5 fix: process should be polyfilled rather than mocked (#3878)
To be in line with webpack's default configuration and avoid confusions:
https://webpack.js.org/configuration/node/
2019-04-27 20:03:50 +08:00
Haoqun Jiang 4f74b272d1 fix: should invalidate cache when lockfiles have updated (#3865)
closes #3635
2019-04-27 20:02:07 +08:00
Guillaume Chau 89e0697cc9 feat: syntax highlight inspect output (#3844) 2019-04-18 17:03:11 +02:00
Haoqun Jiang 92c69e1602 fix: should pass cwd as argument 2019-04-11 17:39:31 +08:00
Haoqun Jiang a1aef86578 fix: check for project pnpm only 2019-04-11 17:34:06 +08:00
Haoqun Jiang 94f3ca0e91 fix: better pnpm check
1. separate project pnpm check and global pnpm check
2. rename hasPnpm to hasPnpm3OrLater
2019-04-11 16:38:49 +08:00
Haoqun Jiang f1807fd304 Merge pull request #3743 from vuejs/next-minor
3.6
2019-04-11 09:26:12 +08:00
Nick ff62895c99 feat: add --filename option to specify the output (lib) file name (#3703) 2019-04-09 20:40:19 +08:00
dailyvuejs b170e15f39 refactor: remove unused placeAtRootIfRelative parameter (#2405) 2019-04-09 18:26:52 +08:00
Guillaume Chau 3479f21f12 refactor(plugin): invoke is now done in child process (#3778) 2019-04-08 21:08:07 +02:00
robertkruis a02ef3988f feat: support PNPM as a package manager (#1531)
Enables vue-cli to use PNPM (https://pnpm.js.org/) as package manager
2019-04-09 00:43:47 +08:00
Haoqun Jiang 2e20b7aef4 feat: bundle currentScript polyfill by default if library needs IE support (#3760) 2019-04-08 19:48:19 +08:00
Thorsten Lünborg a6d31662cf feat: add 3rd option to lintOnSave to support 'default' behaviour (fix #3552) (#3572) 2019-04-01 19:40:18 +08:00
Haoqun Jiang 9e317d20d7 chore: merge branch 'dev' into next-minor 2019-04-01 18:08:59 +08:00
Haoqun Jiang 30f2aad0a7 feat: support multi-main entry in pages config (#3595) 2019-04-01 14:18:35 +08:00
Thorsten Lünborg adac48db0d fix: properly load non-js config files in genCacheConfig (#3632)
close #3631
2019-03-27 23:08:54 +08:00
Haoqun Jiang 10296ff6a7 fix: set the path of safari-no-module-fix.js correctly (#3647)
fixes #3033
2019-03-27 23:06:56 +08:00
Haoqun Jiang 1d14d4d246 feat: support pug as html template (#3663)
closes #3646
2019-03-27 18:02:43 +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
Thorsten Lünborg bb4f349c87 fix: proxy should warn when array is passed. (#3525)
close #3524
2019-03-06 15:36:49 +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
Thorsten Lünborg 6f93bfeee0 fix(cli-service): inspect --rules (close #3334) (#3378) 2019-03-05 22:28:28 +08:00