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
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
1d14d4d246
feat: support pug as html template ( #3663 )
...
closes #3646
2019-03-27 18:02:43 +08:00
Haoqun Jiang
486a921e9f
fix: fix reference of friendly-errors-webpack-plugin in config
2019-01-29 19:17:51 +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
2ac64d6de1
fix: .wasm extension should have lower priority when resolving modules
...
in line with https://github.com/webpack/webpack/pull/8448
fixes #3023
2018-12-12 21:32:41 +08:00
Andréas Hanss
2db8d1877b
feat: add support for loading WebAssembly and ES Modules ( #2819 )
2018-11-26 12:45:12 +08:00
Haoqun Jiang
0909bc8688
fix: revert file name hashing in dev mode
...
closes #2492
The change was intended to mitigate the problem that Safari keeps caching
dev bundles.
But it caused several unintended bugs:
1. [Hashes in file names with HMR enabled might cause memory leaks](https://github.com/webpack/webpack-dev-server/issues/377#issuecomment-241258405 )
2. Moving the hash to file query also breaks many webpack loaders:
1. [mocha-webpack](https://github.com/vuejs/vue-cli/commit/f68358307861614ff3fe5f20af19110cbf39ebe7 )
2. [django-webpack-loader](https://github.com/vuejs/vue-cli/issues/2492 ))
So till we find a better way to solve this issue, hashes in dev bundles
should be removed.
2018-09-12 12:49:54 +08:00
Haoqun Jiang
52dbdf88ff
chore: move the hash part in filename to query parameters (dev mode)
...
Development builts with HMR enabled have a bunch of problems with hashes
in filenames (e.g., https://github.com/webpack/webpack-dev-server/issues/377#issuecomment-241258405 ).
But to mitigate the Safari caching issue, hashes cannot be omitted.
So move them to query parameters to see if this works.
2018-09-10 19:54:44 +08:00
Haoqun Jiang
c9cc225866
fix: revert default symlinks setting ( #2409 )
...
Currently in Vue CLI we set the default `symlinks` config to `false`.
This setting is counterintuitive, and inconsistent with webpack's default
configuration, per https://webpack.js.org/configuration/resolve/#resolve-symlinks
The change of default `symlinks` value is introduced by https://github.com/vuejs/vue-cli/commit/5b4df1427885e46666d780ba64e759c930c534db
It is most likely a duplicate of https://github.com/vuejs/vue-cli/commit/145492b2d93f3afa1049efbf782899a3619fb457
Since several third-party npm clients uses symlinks to speed up installation
(e.g. cnpm, pnpm...), that change breaks webpack HMR for their users.
See #1559 , #2195 , #2284
This commit also fixes #1609
2018-09-05 14:24:22 +08:00
Haoqun Jiang
33dad3906f
fix: add hash to filename in development mode ( #2403 )
...
to circumvent a Safari caching issue
closes #2391 , #1132
2018-09-04 17:44:37 +08:00
Evan You
1f0c8e935e
fix: work around url-loader 1.1.0 regression
...
close #2242
2018-08-16 10:15:47 -04:00
Evan You
92473e9f21
refactor: extract asset path logic
2018-07-30 15:37:09 -04:00
Vicey Wang
ce7b394560
feat: add filenameHashing option ( #1980 )
2018-07-30 15:30:30 -04:00
Yingya Zhang
8c4c96ef93
chore: fix typo babel ( #1787 )
2018-07-09 10:13:33 +02:00
Evan You
0b42f2f77a
refactor: make modern mode a build flag instead of an option
2018-06-13 13:17:46 -04:00
Evan You
204d8f07de
feat: modern mode
2018-06-12 23:51:19 -04:00
Evan You
5b4df14278
fix: resolve.symlinks to false so that node_modules exclusion works
...
properly on linked modules
2018-06-07 10:28:32 -04:00
Evan You
e17f78c6c5
fix(unit-mocha): ensure correct mode for webpack config
...
close #1389
2018-05-30 11:37:30 -04:00
JK
04600e6362
fix(cli-service): make devBaseUrl work properly in serve command ( #1405 )
2018-05-30 10:53:11 -04:00
Evan You
7ce91c89f2
workflow: enable eslint node/no-extraneous-require
2018-05-30 10:25:33 -04:00
Evan You
9846cd520c
fix: fix caching dependency ( close #1384 )
2018-05-29 09:29:18 -04:00
Evan You
ebffdf0543
refactor: compiler -> runtimeCompiler
...
BREAKING CHANGE: `compiler` option has been renamed to `runtimeCompiler`
2018-05-28 21:38:04 -04:00
Evan You
8fe554c04c
perf: enable vue-loader template compilation caching
2018-05-22 13:25:52 -04:00
Evan You
1075576690
perf: adjust caching and parallelization
2018-05-22 00:09:30 -04:00
JK
9638d90005
feat(cli-service): add assetsDir option to specify assets root directory ( #1322 )
...
close #1311
2018-05-18 16:49:58 -04:00
test
763cf7a8bc
feat: support webp
...
close #1321
2018-05-18 16:46:09 -04:00
Igor Randjelovic
b2b277a790
fix: typo in vue-loader compilerOptions ( #1263 )
2018-05-11 12:39:48 -04:00
Evan You
a8af883741
revert: feat: new option "preserveWhitespace""
...
This reverts commit ea834412f6 .
2018-05-09 18:19:22 -04:00
Evan You
2dcdeddde4
feat: upgrade to webpack 4
...
BREAKING CHANGE: Upgrade wepback 4, all webpack option
modifications must be webpcak 4 compatible. Drop support
for webpack plugins that do not work with v4 or above.
2018-05-08 16:55:13 -04:00
Evan You
ea834412f6
feat: new option "preserveWhitespace"
2018-05-04 19:03:07 -04:00
Evan You
f5c0f58673
feat: upgrade to vue-loader 15
...
BREAKING CHANGE: the "vueLoader" option has been removed. To modify vue-loader
options, use chainWebpack then `config.module.rule(vue).use(vue-loader).tap()`.
vue-loader has been upgraded to v15 and expects different options from v14.
2018-05-04 18:58:11 -04:00
Evan You
a2ac6be36b
fix: mock process for 3rd party libs ( close #934 )
2018-03-03 19:14:55 -05:00
Thorsten Lünborg
73ad2f844b
fix: fix friendly-error plugin name typo ( #882 )
2018-02-28 15:29:01 -05:00
pbastowski
d7cfa00945
fix: make extension test for font files case-insensitive ( #830 )
2018-02-12 16:56:50 -05:00
Evan You
691cfa2b88
fix: shim global for node modules
...
ref #774
2018-02-04 10:07:08 -05:00
Evan You
50fdd9b91e
feat: build --target wc-async
2018-02-03 16:20:13 -05:00
Evan You
1c4943b6ec
feat: improve build lib/web-component
2018-02-01 15:12:32 -05:00
Evan You
faadadf5ad
feat: build --target lib/wc
2018-01-30 01:04:11 -05:00
Evan You
b626ef1a5b
feat: make env variables available in HTML template
2018-01-29 18:43:26 -05:00
Evan You
367b78b08c
fix: more global resolve fixes + better error message for missing loaders
2018-01-25 22:35:18 -05:00
Evan You
8f0b52faa8
fix: resolve for global service
2018-01-25 19:28:02 -05:00
Evan You
8dff383841
feat: auto DLL
2018-01-24 20:24:43 -05:00
Evan You
bd1ffd3e69
feat: optimize minification
2018-01-24 12:34:42 -05:00
Evan You
2c1ad1441d
fix: ensure paths + make html optional
2018-01-24 11:41:04 -05:00
Evan You
29d01f54c4
refactor + tests for CSS resolver
2018-01-14 00:32:21 -05:00
Evan You
03503b6f5d
tweak pwa registration script
2018-01-10 16:20:29 -05:00
Evan You
902f6c0fb3
feat: pwa
2018-01-09 17:45:41 -05:00
Evan You
01ce10733b
preload/prefetch + inline manifest
2018-01-08 23:35:53 -05:00