Commit Graph

126 Commits

Author SHA1 Message Date
Haoqun Jiang
6708063add fix: fix customHtmlOptions overriding 2018-10-22 01:19:59 +08:00
Haoqun Jiang
e929d48716 fix: fix cypress error caused by object rest syntax 2018-10-22 01:12:47 +08:00
Haoqun Jiang
4cabf5e8c7 feat: allow user to customize html-webpack-plugin option in multi-page mode
closes #2544
2018-10-21 18:53:11 +08:00
Haoqun Jiang
0e5cf4a4eb chore: switch from uglifyjs-webpack-plugin to terser-webpack-plugin (#2742)
closes #2245
2018-10-20 19:31:59 +08:00
Haoqun Jiang
ab0503b19f fix: fix test issues for cypress GUI 2018-10-07 18:05:48 +08:00
Haoqun Jiang
b559005ce6 fix: revert postcss-loader order change
The loader used for minification should come first in the rules array
(i.e. execute last, as webpack loaders are executed in reverse order).
2018-09-13 00:10:33 +08:00
Haoqun Jiang
1682ff7c17 fix: fix ESDIR errors when outputDir contains dots
closes #2414

When `toType` is not specified, copy-webpack-plugin will infer it from
the value of `to`. So if it contains one or more dots, it would be
treated as a file with extension.
2018-09-12 13:08:49 +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](f683583078)
  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
69cec80238 fix: hash module ids in anonymous chunks, avoid ENAMETOOLONG error
closes #2490
2018-09-12 11:57:28 +08:00
Evan You
a2d109508f fix: adjust postcss-loader order when using inline minification 2018-09-11 10:16:58 -04: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
d0320eb8c2 fix: fix cssnanoOptions format
closes #2395
2018-09-09 23:51:45 +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 5b4df14278
It is most likely a duplicate of 145492b2d9

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
Haoqun Jiang
3933187f73 fix: revert named-chunks nameResolver algorithm (#2324)
* Revert "fix: avoid hash collisions (#1959)"

This reverts commit 4b5a63441b.

* Revert "refactor: improve chunk name aesthetics"

This reverts commit 625d541715.
2018-09-04 16:51:48 +08:00
Haoqun Jiang
78c6877294 fix: fix hmr compatibility with worker-loader (#2286)
closes #2276
2018-08-20 11:39:07 -04:00
Evan You
1973e2de2c fix: fix extracted css publicPath for target --lib
close #2260
2018-08-17 10:04:17 -04: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
a2c767efc4 fix: minify embedded CSS with extract: false
close #2214
2018-08-15 18:34:55 -04:00
Evan You
1e7fa2cf46 fix: fix css output location for relative baseUrl + more details in docs 2018-08-15 18:34:26 -04:00
Evan You
55043d310e feat: support Subresource Integrity via integrity option 2018-08-09 01:22:46 -04:00
Evan You
7b39bed188 refactor: use better modern mode and cors implementation
BREAKING CHANGE: The `corsUseCredentials` option has been replaced by the new
`crossorigin` option.
2018-08-08 23:31:13 -04:00
Evan You
fff62f7a73 refactor: enable dev config in more cases 2018-08-08 10:18:48 -04:00
Evan You
9e4d62cc80 fix: ensure consistent build hash with different project locations 2018-08-07 17:36:11 -04:00
Evan You
ec508c7004 ci: fix index.html moving 2018-08-06 22:17:31 -04:00
Evan You
4220835fa1 fix(css): fix importLoaders which only applies to plain CSS imports
close #2055
2018-08-06 21:51:47 -04:00
Evan You
68aaa8fd7d fix(pwa): workaround index sw manifest path when using relative indexPath
close #2007
2018-08-06 21:30:55 -04:00
Evan You
495c25a019 fix: defensive html chunk sorting
close #1993
2018-07-31 11:41:05 -04:00
Evan You
686ec2591a feat: allow enfoce extract css in development
close #2002

BREAKING CHANGE: setting css.extract to true will now force extraction in development
2018-07-31 11:07:42 -04:00
Evan You
352d3bbcbe fix: ensure entry chunk is placed last for CSS overrides 2018-07-30 16:31:16 -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
花裤衩
4b5a63441b fix: avoid hash collisions (#1959) 2018-07-27 07:07:11 -05:00
Evan You
b9ecb90476 feat: support specifying index output path via indexPath option 2018-07-26 22:14:49 -04:00
Evan You
ee82c3e53e refactor: only place css at root when using relative baseUrl 2018-07-26 17:15:38 -04:00
Evan You
625d541715 refactor: improve chunk name aesthetics 2018-07-26 17:12:36 -04:00
Evan You
db2636151c fix(build): ensure consistent chunk id for async chunks
close #1916
2018-07-26 16:40:31 -04:00
Evan You
8415622f28 feat(build): allow specifying chunks in multi-page mode
close #1923
2018-07-23 13:49:21 -04:00
Evan You
dcf9931809 fix(build): respect productionSourceMap option for all targets
close #1898
2018-07-20 10:09:17 -04:00
Evan You
744c375fba fix: disable chunk sorting in html-webpack-plugin
close #1669
2018-07-17 23:04:03 -04:00
posrix
67298808cd feat: pages support title option (#1619)
* pages support title option

* docs: pages `title` option
2018-07-11 01:29:30 +02:00
Yingya Zhang
8c4c96ef93 chore: fix typo babel (#1787) 2018-07-09 10:13:33 +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
Marvin
20bbff0c79 fix: default html template, closes #1679 (#1707) 2018-07-04 13:14:05 +02:00
Evan You
ddf9c36218 refactor: consistent build target env variable 2018-06-13 15:38:36 -04: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
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
Evan You
4db901cd26 fix: fine tune chunk splitting
close #1488
2018-06-06 16:16:16 -04:00