songyazhao
165c80d94b
fix(SSR plugin): use isJS for matching assets ( #3387 ) ( #4073 )
2018-10-10 12:20:07 +03:30
Clark Du
61407fec1d
refactor: config Postcss preset and plugins together ( #3927 )
2018-10-09 15:56:11 +03:30
Alexander Lichter
d69b4b8b12
feat: abstract minify and use value for all modes ( #3965 )
...
* feat: abstract minify and use value for all modes
* change name to htmlMinify
* only override htmlMinify with legacy value in generate mode
* Use default options for htmlMinify and add override info to warning
* Remove redundant minification settings
* Override minification settings in generator
* Cleanup and add TODO for nuxt 3
* Improve warning
* set default minify option to "true"
* make tests pass again
* remove the culprit
* replace htmlMinify with html.minify
2018-09-30 18:12:38 +02:00
Clark Du
0393bf781c
feat: use understandable file names for analyze mode ( #4014 )
...
* feat: use understandable file names for analyze mode
* test: asset name for analyze mode
* refactor: add warning message for analyze mode
* refactor: move analyze warning to builder
* test: analyze warning message
2018-09-30 18:11:20 +02:00
Pooya Parsa
8f06a187db
feat(builder): allow to customize or disable minimizer plugins ( #4018 )
...
* feat(builder): allow to customize or disable minimizer plugins
* feat: support optimization.minimize
https://webpack.js.org/configuration/optimization/#optimization-minimize
* fix typos
2018-09-30 18:09:06 +02:00
Pooya Parsa
b69cabef88
hotfix: use terser-webpack-plugin
( #3928 )
...
<!--- Provide a general summary of your changes in the title above -->
## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
## Description
Webpack requires `uglifyjs-webpack-plugin@1.x`. thus `uglifyjs-webpack-plugin@2.x` may not resolve correctly. Also, the webpack team decided to go with `terser-webpack-plugin` (https://github.com/webpack/webpack/pull/8036 ).
## Checklist:
<!--- Put an `x` in all the boxes that apply. -->
<!--- If your change requires a documentation PR, please link it appropriately -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly. (PR: #)
- [ ] I have added tests to cover my changes (if not applicable, please state why)
- [ ] All new and existing tests passed.
2018-09-20 22:49:43 +01:00
Clark Du
1c34651baa
fix: css-loader 1.0 removed alias ( #3741 )
...
BREAKING CHANGE
2018-09-19 13:16:21 +04:30
Clark Du
c77fa479f6
feat(webpack, builder): allow extending loader options ( #3799 )
2018-09-10 12:57:01 +04:30
Alexander Lichter
f87992530e
feat(webpack/client): minify extracted css assets ( #3857 )
2018-09-09 01:18:46 +04:30
Indrek Ardel
674e9ed545
feat(builder, webpack): allow loading webp images as assets ( #3827 )
2018-09-01 08:56:10 +04:30
Clark Du
567dc860c1
feat: new filenames structure ( #3789 )
...
* feat: new filenames structure
* refactor: codes format
* refactor: remove [path] in output filename
* refactor: use chunkhash for js files
* refactor: remove normalizeFileName
2018-08-22 23:54:08 +02:00
Sébastien Chopin
22559a838c
code: Update code style, remove else
2018-08-22 20:12:07 +02:00
Clark Du
e8414291b4
refactor: functional filename should be called from webpack ( #3788 )
...
@Atinux Improvement for #3787
2018-08-22 16:47:52 +01:00
Clark Du
3612ecd435
feat: support functional filenames ( #3787 )
2018-08-22 17:08:51 +02:00
Clark Du
8230354d1b
feat: webpack refactor ( #3747 )
...
* refactor: use more standard entrypoint config
* refactor: fix dev entry name
* refactor: webpack devtool and optimization
2018-08-22 16:24:47 +02:00
Tatsuyuki Ishi
716c04f4e9
Isolate client and server artifacts ( #3758 )
2018-08-20 18:04:55 +02:00
Tatsuyuki Ishi
715df92eac
Use getFilename for url-loader assets ( #3759 )
...
Now they get [name] removed in production.
2018-08-18 10:00:35 +01:00
Clark Du
a3a8c0c9db
refactor: move UglifyJs after extend for getting updated devtool ( #3748 )
2018-08-16 22:35:38 +01:00
Clark Du
673a38216f
refactor: extract customize webpack function ( #3745 )
2018-08-16 19:14:26 +02:00
Clark Du
128dcbe266
refactor: add build.postcss.preset config
2018-08-15 15:22:26 +01:00
Clark Du
1492a13162
refactor: nuxt dev watcher ( #3732 )
2018-08-15 13:48:34 +02:00
Clark Du
b60c4fd432
refactor: add build.quiet config
2018-08-12 14:35:24 +01:00
Clark Du
c4792d247b
refactor: options.test from env CI or test
2018-08-10 17:37:20 +01:00
Clark Du
cf06559fa6
refactor: remove unused option ci
2018-08-10 17:12:33 +01:00
Clark Du
9b060f3be1
feat: upgrade to Babel 7 ( #3667 )
2018-08-10 14:45:58 +01:00
Alexander Lichter
52d9629bac
eslint: Prefer const over let ( #3650 )
2018-08-08 12:54:05 +02:00
Clark Du
854e53911d
refactor: use default preset for cssnano
2018-08-06 18:42:23 +01:00
Clark Du
e946df1dcf
feat: upgrade css-loader to 1.0
2018-08-06 18:42:23 +01:00
Jonas Galvez
3f1d634fb7
Consistent parens in arrow functions ( #3630 )
...
* Minor consistency enhancements
* Arrow parenthesis consistency
* Change linting rule
* Fix typo
* Update .eslintrc.js to only require parens for blocks
* Update style according to brace-only suggestion
* Remove --fix from lint
* Tweak no-loading time (failing test)
* Tweak no-loading time (failing test) (2)
* Tweak no-loading time (failing test) (3)
* Tweak no-loading time (failing test) (4)
* Tweak no-loading time (failing test) (5)
2018-08-06 02:12:44 +02:00
Blake Kostner
4e2f9ca1f2
add ogv to webpack video config ( #3624 )
2018-08-01 18:07:18 +02:00
Clark Du
56db988f27
feat: exclude build.transpile in server node externals ( #3614 )
2018-07-31 15:10:24 +02:00
Clark Du
7998516b85
refactor: enable css thread pool ( #3598 )
2018-07-29 20:02:06 +01:00
Dmitry Molotkov
5280e86dfc
generate source map for uglify if devtool === #source-map ( #3451 )
...
* generate source map for uglify if devtool === #source-map
* support different variants of source-map option
* change source map to be likes in official webpack repo
https://github.com/webpack/webpack/blob/master/lib/WebpackOptionsDefaulter.js#L294
* small code cleanup
2018-07-24 13:01:51 +02:00
Alexander Lichter
095404a251
refactor: change function calls when arity is one ( #3563 )
2018-07-20 16:42:31 +01:00
Clark Du
9afd6a55dd
refactor: obselete AggressiveSplittingPlugin
2018-07-17 12:13:06 +01:00
Tatsuyuki Ishi
0db21b1f54
fix: require babel-preset-vue-app directly ( #3406 )
2018-06-02 18:50:18 +04:30
Pooya Parsa
8acef8d01e
feat: use postcss-preset-env instead of postcss-cssnext ( #3291 )
...
https://moox.io/blog/deprecating-cssnext
2018-06-02 01:41:55 +04:30
Pooya Parsa
35ee689473
target SSR bundle to current node version for legacy build support
2018-06-01 16:55:02 +04:30
Pooya Parsa
727ef16920
fix(rollup): fix build warnings
2018-06-01 16:30:17 +04:30
yoyo837
b4d74b417c
minify: true => fix gap between inline-block labels
2018-05-30 10:57:03 +08:00
Clark Du
13ae634c74
refactor: simplify build.transpile
2018-05-06 20:48:19 +01:00
Clark Du
8b0c2f1a67
feat: add build.transpile to transpile npm packages
2018-05-06 19:46:02 +01:00
Clark Du
021ba5a1e2
feat: make babel-loader exclude configurable
2018-05-06 19:20:40 +01:00
Clark Du
bd97faec59
feat(vue-loader): import SFCs from dependencies
2018-05-04 17:00:46 +01:00
Pooya Parsa
2428a13c05
feat(ssr): render initial and used async css chunks ( vuejs/vue#7902 )
2018-05-02 14:29:55 +04:30
Pooya Parsa
dfab96fdb7
fix: whitelist vue&type=style in SSR bundle
2018-05-02 12:57:26 +04:30
Sean Larkin
d26a4169bb
fix(wasm): fix resolved default extensions
...
Fixes #3261
2018-04-23 23:58:01 -07:00
Alexandre Villeneuve
85cfc625ee
feat: optional pug support ( #3206 )
2018-04-21 11:57:48 +04:30
Pooya Parsa
238480c322
fix: commons group working with windows
2018-04-13 01:01:26 +04:30
Clark Du
952dfe0d4f
fix: multiStep broke html-webpack-plugin
2018-04-11 22:54:01 +08:00