Commit Graph

146 Commits

Author SHA1 Message Date
Jonas Galvez
a3dd7dad6b feat: configurable global name (#4012)
Co-authored-by: JuliaNeumann <jn.julianeumann@gmail.com>
2018-10-09 15:38:33 +03:30
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
Pim
226b90d4ae fix: prevent removing project by mistake due to build or generate paths (#3869) 2018-09-14 11:36:44 +04:30
Alexander Lichter
6fc78ea024 Fix legacy gzip warning (#3884)
Fix legacy gzip warning. Thanks to @liam-potter for pointing that out!

Related PR: #3863 

## Types of changes

- [x] Bug fix (non-breaking change which fixes an issue)

## Checklist:
- [x] All new and existing tests passed.
2018-09-13 16:07:34 +01:00
Clark Du
c77fa479f6 feat(webpack, builder): allow extending loader options (#3799) 2018-09-10 12:57:01 +04:30
Alexander Lichter
1e0219543a feat: automatically include env variables starting with NUXT_ENV_ (#3862) 2018-09-09 01:38:25 +04:30
Alexander Lichter
b74d537cba feat(renderer): make compression middleware customizable (#3863) 2018-09-09 00:48:14 +04:30
Clark Du
ba5df53042 refactor: remove unnecessary splitChunks process (#3791) 2018-08-23 15:48:05 +02:00
Clark Du
09188dd173 refactor: change quiet log mode after options validated 2018-08-13 17:16:25 +01:00
Clark Du
ba2b63e131 refactor: keep error logs in quiet mode 2018-08-12 14:35:24 +01: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
Alexander Lichter
960f4fe47e feat: make appTemplatePath customizable (#3678)
related: #1925
2018-08-10 16:23:09 +01:00
Alexander Lichter
427e836688 lint: force dot-notation where applicable (#3677) 2018-08-10 08:19:19 +01:00
Alexander Lichter
cb18aa6f53 feat: add Vue.config configuration to nuxt.config.js (#3655)
After #3564 and the request of #3427  (plus #3452) I decided to add a dedicated `vueConfig`object to the `nuxt.config.js` file.

The keys will be projected on Vue.config.

By default, `Vue.config.performance` is enabled in dev mode, `Vue.config.silent` is enabled in production mode.

Doc PR incoming.

Resolves: #2910, #3427
2018-08-08 20:05:23 +01:00
Clark Du
56db988f27 feat: exclude build.transpile in server node externals (#3614) 2018-07-31 15:10:24 +02:00
Alexander Lichter
8c85f2299e feat(csp): add reportOnly option (#3559) 2018-07-30 18:04:02 +02:00
Alexander Lichter
095404a251 refactor: change function calls when arity is one (#3563) 2018-07-20 16:42:31 +01:00
Clark Du
d98c98360a refactor: smiplify csp 2018-07-01 23:43:30 +04:30
Clark Du
749da85b90 misc: remove unused cache config (#3490) 2018-07-01 23:40:44 +04:30
Clark Du
13ae634c74
refactor: simplify build.transpile 2018-05-06 20:48:19 +01:00
Pooya Parsa
a8cbbf03ce always enable resourceHints 2018-05-02 14:29:55 +04:30
Sébastien Chopin
0df0b8bebc fix: When render.scp is true, add csp.enabled to true 2018-04-13 11:08:36 +02:00
Clark Du
20010a6f47
misc: add warn for vendor 2018-04-13 14:50:39 +08:00
Ricardo Gobbo de Souza
320d1ba283 chore(options): vendor backward compability with nuxt 1.x (#3218) 2018-04-13 01:12:50 +04:30
Clark Du
e2e124b8e4 refactor: enable babel.cache in dev by default 2018-04-02 20:01:17 +08:00
Pooya Parsa
59ff0df052 feat: use consola for logging 2018-03-31 20:52:14 +04:30
Clark Du
ed321f52c1
refactor: stats none is same as false 2018-03-29 15:11:34 +08:00
Pooya Parsa
428a37acb0 improve prod chunk splitting 2018-03-28 11:13:07 +04:30
Clark Du
ef7a42649d misc: improve coverage and packaging (#3121)
nuxt-start and nuxt/legacy are also coming!
2018-03-28 02:58:17 +04:30
Pooya Parsa
6234ae84c0 refactor(core): use strict mjs 2018-03-16 22:41:24 +03:30
Pooya Parsa
ec616f109b refactor options 2018-03-16 20:53:15 +03:30
Pooya Parsa
53e98a958c feat: rewrite core to esm 2018-03-16 19:42:06 +03:30
Clark Du
73d35b9933
refactor: remove options.uglify due to use webpack built-in minimizer 2018-03-15 15:09:39 +08:00
Pooya Parsa
86d0031ae6 feat: splitPages 2018-03-13 18:06:49 +03:30
Clark Du
2a931cbad6
refactor: remove vendor 2018-03-13 09:46:37 +08:00
Clark Du
365a6adc35
refactor: change splitChunks file name to vendor.hash.js 2018-03-12 10:32:43 +08:00
Pooya Parsa
b8f8f18384 optimize webpack 2018-03-12 00:58:56 +03:30
Pooya Parsa
23ab6612e4 Merge branch 'dev' into feat/webpack4 2018-03-11 23:26:48 +03:30
Clark Du
f9d2bce5af
refactor: move babel defaults value to Options.defaults 2018-03-09 14:30:50 +08:00
Pooya Parsa
23c11b1cef remove dll support
webpack 4 is more faster and dll is
 problematic and unstable.
2018-03-01 10:42:48 +03:30
Pooya Parsa
46de1a32cf Merge branch 'dev' into feat/webpack4 2018-03-01 10:20:04 +03:30
Libor Vaněk
d7b1dd53ac
Include Vuex only when store is not empty 2018-02-27 23:08:19 +02:00
Hana Shiro
0a823252ae fix file permission in lib and test (#2883) 2018-02-27 00:18:36 +03:30
Pooya Parsa
eae92d7275 remove build.scopeHoisting option
ModuleConcatenationPlugin enabled in production. Configurable with  optimization.concatenateModules
2018-02-26 14:03:21 +03:30
Sébastien Chopin
0b1e54dc57
Merge branch 'dev' into config-pages-dir 2018-02-05 09:16:27 +01:00
Sébastien Chopin
6acd9b6516
Merge pull request #2736 from dojineko/variable-csp
Multiple policy support for Content-Security-Policy
2018-02-05 09:14:11 +01:00
Sébastien Chopin
0a52cd2031
Merge pull request #2755 from clarkdo/static_prefix
feature: add static.prefix
2018-02-05 08:55:28 +01:00
Clark Du
e60a8e7463 refactor: add true as default value of static.prefix 2018-02-05 09:57:10 +08:00
Ricardo Gobbo de Souza
7786451064 feat: custom store directory 2018-02-04 07:31:03 -02:00