Jonas Galvez
f0f307553f
Filter out non-strings (serverMiddleware watch fix) ( #3771 )
...
* Filter out non-strings
* Add serverMiddleware function
* Add serverMiddleware function (2)
* Add serverMiddleware function (3)
2018-08-20 16:43:23 +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
565ab7086a
fix: disable template literals in loadash template ( #3753 )
2018-08-17 09:55:24 +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
50be809b1c
refactor: plugin sanity check ( #3743 )
2018-08-16 16:34:32 +01: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
Jonas Galvez
f184016197
Server middleware watcher ( #3718 )
...
See https://github.com/nuxt/nuxt.js/issues/1509
Status: improving tests.
2018-08-14 19:35:25 +01:00
Clark Du
85a8af570d
refactor: use resloveAlias for watch
2018-08-13 22:25:03 +01:00
Clark Du
b60c4fd432
refactor: add build.quiet config
2018-08-12 14:35:24 +01:00
Jonas Galvez
ec52104ec1
Fix chokidar on() handler ( #3694 )
...
@clarkdo need to merge this asap -- related to https://github.com/nuxt/nuxt.js/pull/3633#discussion_r209436334
2018-08-11 21:43:25 +01:00
Clark Du
3a825dc773
fix: error when plugin not specify js extension ( #3692 )
2018-08-11 19:18:31 +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
4472a5003e
refacotr: reduce duplicate call of plugins getter
2018-08-10 16:39:07 +01:00
Jonas Galvez
75d6c4e33a
Display proper error when specified plugin isn't found ( #3672 )
...
Picking up on https://github.com/nuxt/nuxt.js/pull/3434 -- synced with dev and tests included.
2018-08-10 15:48:27 +01:00
Clark Du
9b060f3be1
feat: upgrade to Babel 7 ( #3667 )
2018-08-10 14:45:58 +01:00
Jonas Galvez
1842a3b5cb
Relative path in custom watchers ( #3673 )
...
This was missing in #3633 .
2018-08-10 11:37:05 +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
Jonas Galvez
a522aaf125
misc: add user-defined chokidar files to watch (2) ( #3633 )
...
* misc: add user-defined chokidar files to watch
* Improved user-defined chokidar files setup
* Improved user-defined chokidar files setup (2)
* Added custom file for CLI watch test
* Added cli.dev.test.js
* Added cli.dev.test.js (2)
* Remove cli-start/cli.dev, just use cli.test
* Refactored CLI test
* Missing dot in fname
* Improved user-defined chokidar files setup (3)
* Fix killNuxt()
* Remove genHandlers
* Refactored CLI test (2)
* Refactor exitCode
* Remove debugging code
* Remove debugging code (2)
* Linting
* Linting (2)
* Disable nuxt-start test for now
* Disable nuxt-start test for now (2)
* Tweaking nuxt-start test
* Tweaking nuxt-start test (2)
* Tweaking nuxt-start test (3)
* Fix ext
* Tweaked wait params
* Fix conflicts
* hotfix
* nuxt-dev tweak
* Add blank line after variables declaration
* Disable waitFor() test due to random failure in appveyor
* Fixed error msg
* Refactored into builder.js
* Refactored into builder.js (2)
* Remove unnecessary import from nuxt-dev
* Fixed nuxt-dev test
* Debugging nuxt-dev test
* Debugging nuxt-dev test (2)
* Skip in appveyor
* Linting
* Requested changes
* Hook into nuxt-dev
* Hook into nuxt-dev (2)
* Get fname
* Get fname (2)
* Get fname (3)
* Change hook name
* Fixed conflict
2018-08-08 19:51:57 +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
HANATANI Takuma
ff32dbdb09
Fix GitHub capitalize ( #3623 )
2018-08-01 18:07:43 +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
Clark Du
a0ca257263
fix: lost context in closures
2018-07-25 17:10:56 +01:00
Alexander Lichter
65d318d475
refactor: remove unused variables ( #3576 )
2018-07-25 09:00:21 +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
Dmitry Molotkov
b0d2f674c8
exit code 1 in case of failed builds ( #3535 )
...
Fixes https://github.com/nuxt/nuxt.js/issues/3534
2018-07-20 16:12:29 +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
3d2a7b29d1
use pify instead of utils.promisify for legacy build support
2018-06-01 16:54:37 +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
44d1e83c7f
cli: consola.info
2018-05-02 14:29:55 +04:30
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