Commit Graph

66 Commits

Author SHA1 Message Date
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 2953e2214a refactor: validate webpack config in serve as well + warn publicPath config error 2018-08-09 23:26:29 -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
Rodrigo Pedra Brum ae1817a769 fix: typo (#1965)
Fixes typo in console.log output when the build is the first build
(direcotry => directory)
2018-07-27 20:12:43 +02:00
Evan You 05079e30a0 chore: improve build message 2018-07-26 16:55:56 -04:00
Evan You 80376470df chore: add warning when using --modern with non app build
ref #1940
2018-07-26 16:05:37 -04:00
Hiển Đào Vinh 6c966f46bb feat(build): set output target before configureWebpack, close #1941 (#1943) 2018-07-25 11:51:54 -05:00
Evan You 30215c2819 feat: add corsUseCredentials option
This allows the user to configure which CORS strategy to use
for <script type=module> in modern mode.

close #1867
2018-07-23 13:04:48 -04:00
Evan You 10aa99641b fix(web-component): fix multiple wc-async bundles on the same page
close #1150
2018-07-20 11:36:18 -04:00
Evan You d26cb864b4 fix(build): avoid default import warning when lib entry has no default export
close #1641
2018-07-17 12:44:25 -04:00
Evan You 369f97238e fix(build): fix global object when building as lib with async chunks
close #1607
2018-07-17 11:54:54 -04:00
Haoqun Jiang 3899b52d39 fix(build): add charset to demo pages, fix #1765 (#1793) 2018-07-09 13:45:26 +02:00
Thorsten Lünborg d6014417b3 fix: avoid using ES6 in code injected into --lib builds (#1736) 2018-07-03 10:34:33 -04:00
Guillaume Chau dbf72318cb feat(ui): modern build mode 2018-06-14 01:35:49 +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 272ef5e2a4 feat: vue-cli-service build --report/--report-json 2018-06-13 13:17:46 -04:00
Evan You a7564d6e77 fix: should repsect configureWebpack hooks when resolving app config 2018-06-13 01:40:17 -04:00
Evan You 0ab4761596 chore: ensure clearing env var in normal build 2018-06-13 01:21:09 -04:00
Evan You 204d8f07de feat: modern mode 2018-06-12 23:51:19 -04:00
Evan You 323a38c2cf fix(build): --target app should respect inline entry as well
close #1533
2018-06-10 14:59:00 -04:00
Evan You 1732007ce8 feat: bail when user directly mutate output.publicPath 2018-06-06 14:13:05 -04:00
Evan You 1dc47eb955 feat(build): support named exports when building --target lib with js/ts entry
close #1436

BREAKING CHANGE: When building a js/ts entry file with --target lib, the
library now exposes a Module with both default and named exports. This means
in the UMD build, the default export now needs to be accessed as
`window.yourLib.default`, and in the CommonJS build as
`const yourLib = require('yourLib').default`. If you don't have named exports
and want to retain the previous behavior, you can configure webpack to use
`output.libraryExport: 'default'` in `vue.config.js`.
2018-06-05 11:58:17 -04:00
Arthur Denner c19bbff79e feat(cli-service): support --no-clean flag (#1457)
close #1446
2018-06-05 10:34:30 -04:00
Evan You c12f240e3a fix: make umd build usable in Node
close #1348
2018-05-29 00:50:17 -04:00
Evan You 0bc2aeba6d chore: merge dev 2018-05-28 22:10:41 -04:00
Evan You 1719622494 feat: make public dir optional
close #1265
2018-05-28 14:33:45 -04:00
Evan You 9a4159dd9c fix(build): only modify css extraction if its enabled
close #1378
2018-05-28 12:47:19 -04:00
Guillaume Chau d203fa0a5e chore: merge dev 2018-05-21 17:21:22 +02:00
Evan You 5793b91b55 chore: tweak build watch mode message 2018-05-21 10:49:13 -04:00
ziga 6ea17c9f04 feat(build): add 'watch' option (#1332) 2018-05-21 10:46:15 -04:00
Guillaume Chau 8bebef2309 chore: merge dev 2018-05-11 02:35:42 +02:00
Evan You edc5c3f96d test: fix publicPath import typo 2018-05-09 18:05:37 -04:00
Evan You 66bab8c029 fix: respect chunk name in all build targets
close #1251
2018-05-09 17:46:42 -04:00
Evan You c3d246f7a2 fix: ensure dynamic publicPath is set early in lib/wc mode
fix #1253
2018-05-09 17:41:08 -04:00
Evan You 8b4a112b31 fix: improve error message when entry is missing w/ --target lib
close #1051
2018-05-09 17:29:56 -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 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
Guillaume Chau 2a483051ed chore: merge dev 2018-05-02 17:01:20 +02:00
Evan You d595adacf4 refactor: adjust mode loading order
BREAKING CHANGE: PluginAPI.setMode() has been removed. Instead, for a plugin to
sepcify the default mode for a registered command, the plugins should expose
`module.exports.defaultModes` in the form of `{ [commandName]: mode }`.

close #959
2018-05-01 17:14:33 -04:00
Evan You 69a6b0bbfe refactor(cli-serivce): use async functions when running service commands 2018-04-30 19:02:42 -04:00
Evan You 0f73a91162 refactor: use fs-extra 2018-04-30 18:19:02 -04:00
Evan You fd9d255f65 fix(build): fix --dest flag regression
close #1193
2018-04-30 16:16:08 -04:00
Guillaume Chau f674aa69c6 chore: merge dev 2018-04-28 15:33:24 +02:00
Derek Henscheid 2b236e0475 fix(build-wc): honor custom component name for single file wc builds (#1182)
Fixes issue that prevented single entry wc builds from honoring the `--name` argument.

fix #1146
2018-04-27 17:48:32 -04:00
Evan You 92e136a421 fix: --target lib/wc should overwrite user entry/output
fix #1072
2018-04-27 16:03:11 -04:00
Guillaume Chau 3c59d6f4f4 feat(ui): client addons, ipc, shared data, plugin actions 2018-04-09 01:53:41 +02:00
Evan You f744040b50 fix: use dynamic publicPath for web component bundles (fix #949) 2018-03-06 15:06:03 -05:00
Evan You 57ce32a710 fix: respect --dest when copying static assets (close #909) 2018-03-02 21:46:46 -05:00
Kevin Sherman 9b1d376800 docs: add example for build --mode env (#902)
* docs: add docs on using --mode with build command to use corresponding env vars

* Use the arg.mode in the console log "Building for..." message
2018-02-28 18:33:59 -05:00