Commit Graph

131 Commits

Author SHA1 Message Date
Xin Du (Clark)
2fc73cf119 refactor(babel-preset-app): simplify babel preset config (#6087) 2019-09-03 21:36:54 +02:00
Xin Du (Clark)
7c98571ac9
refactor(webpack): simplify transpile normalization (#6179) 2019-08-04 15:23:33 +01:00
Sébastien Chopin
e8f1532124 feat(webpack): allow function entries for build.transpile (#6120) 2019-08-03 21:09:38 +01:00
Kevin Marrec
81b5ce22ce feat: externalize typescript support (#5858) 2019-07-24 11:56:44 +04:30
Xin Du (Clark)
54cd68dbb0 fix: support babel corejs config for modern mode (#6070) 2019-07-16 14:57:05 +04:30
pooya parsa
e7cc2757c3 refactor: update eslint-config to 1.x
Co-authored-by: Alexander Lichter <manniL@gmx.net>
2019-07-10 15:15:49 +04:30
Kevin Marrec
262ea5c31a refactor: prepare for external typescript support (#5854) 2019-06-05 00:18:01 +04:30
Alexander Lichter
d08ce2f628 refactor: small readability improvements (#5748) 2019-05-16 14:38:44 +04:30
Xin Du (Clark)
1f5c6025bd fix(webpack): resolve consola to latest (#5729) 2019-05-14 22:25:14 +04:30
Yama-Tomo
1e4708e90f feat(webpack): suppress not found typescript warnings (#5635) 2019-05-10 14:48:44 +04:30
Xin Du (Clark)
adb381275b feat(webpack): extendable babel.presets and babel envName (#5637) 2019-05-06 18:30:07 +04:30
Pooya Parsa
8576b4fcfd
feat: configurable aliases (#5655) 2019-05-06 18:29:37 +04:30
Pooya Parsa
ffadb3177f
fix(webpack): set log level to warn for HardSourcePlugin (#5653) 2019-05-06 15:17:37 +04:30
Xin Du (Clark)
6ce99d2cc8 fix: revert node-externals disabling in dev mode (#5452) 2019-04-03 14:14:36 +04:30
Xin Du (Clark)
e155ea43d7 fix(webpack): prefer main over module field for server config (#5446)
[release]
2019-04-02 17:30:32 +04:30
Xin Du (Clark)
1ae433355e fix: not override externals set by build.extend (#5444) 2019-04-02 17:27:45 +04:30
Damian Stasik
abf7db1fd3 refactor(webpack): add ability to get webpack config class (#5378) 2019-03-31 22:15:46 +01:00
Xin Du (Clark)
a5a165749a fix: disable node-externals for dev mode (#5414) 2019-04-01 01:05:06 +04:30
Pooya Parsa
832bd12091
refactor(typescript): use an object for _typescript (#5418) 2019-03-30 00:39:20 +04:30
Xin Du (Clark)
04ddcac4f9
fix: memory leak in dev mode (#5399) 2019-03-27 14:34:16 +00:00
Pooya Parsa
20836d9341 hotfix: revert to corejs@2 (#5317) 2019-03-21 19:29:51 +00:00
Pooya Parsa
65c1f86ea3
fix(webpack): always resolve core-js to v3 (#5307) 2019-03-21 15:18:37 +03:30
Xin Du (Clark)
0eb5ed9763 fix(webpack): loaders in extend config is broken (#5292) 2019-03-20 15:38:24 +03:30
Sébastien Chopin
ef41e205e6 feat: loading screen (#5251)
[release]
2019-03-20 12:47:53 +03:30
Kevin Marrec
920f444b6e refactor(ts): better DX for typescript support (#5079)
Breaking change : `build.useForkTsChecker` renamed to `build.typescript.typeCheck`
2019-03-14 13:37:47 +03:30
Julien Dargelos
821676511b fix(webpack): clone config.entry (fixes #4849) (#5236) 2019-03-14 13:35:19 +03:30
renovate[bot]
840ccb4bdf chore(deps): update dependency extract-css-chunks-webpack-plugin to v4 (#5160)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Xin Du (Clark) <clark.duxin@gmail.com>
2019-03-06 11:16:07 +00:00
Xin Du (Clark)
9860eb6a7c
refactor: unify context in webpack module (#5054) 2019-02-18 17:00:51 +00:00
Alexander Lichter
3997d5049d perf(webpack): use futureEmitAssets (#5003) 2019-02-11 14:12:37 +03:30
Alexander Lichter
31cb18737b refactor: use spread syntax for plugin push (#4976) 2019-02-07 18:30:04 +03:30
Xin Du (Clark)
268851fe85
fix: bundle resources other than js(x)/json in node_modules (#4913) 2019-02-01 16:04:06 +00:00
Xin Du (Clark)
0223e56dd4 fix: remove cache-loader for external resources (#4915) 2019-02-01 16:33:32 +03:30
Xin Du (Clark)
de6ca3a4f9 hotfix: extractCSS error in dev mode (#4892) 2019-01-30 01:37:13 +03:30
Xin Du (Clark)
43ce8e97bc fix: match subdir under node_module in transpile (#4850) 2019-01-24 16:42:02 +01:00
Xingkai Wang
dcdbaba710 feat(webpack): support build.hotMiddleware.client (#4796) 2019-01-21 15:25:49 +03:30
Kevin Marrec
6a68f4e981 fix(webpack): prevent terser mangling html/vue reserved tags (#4821) 2019-01-21 00:49:53 +03:30
Kevin Marrec
b202361a1b fix(ts): prevent checking types twice in modern mode & use consola as logger (#4803) 2019-01-19 15:40:21 +03:30
Alexander Lichter
40fbe5ba47 refactor: cleanups and code style improvements (#4788) 2019-01-18 00:48:29 +03:30
Kevin Marrec
dfaffc0183 feat(nuxt-ts): typescript support improvements (#4750) 2019-01-12 23:51:21 +03:30
William Chong
68d8d54e83 fix: use case insensitive regex for webpack loader rules (#4728) 2019-01-09 23:18:34 +03:30
Clark Du
89f88669c1 fix: server build failed in dev mode 2019-01-04 16:33:50 +00:00
Clark Du
30fef5d7a0 fix: enable FriendlyErrorsPlugin when build.friendlyErrors is true 2019-01-04 16:09:10 +00:00
Pooya Parsa
bdb6791e40
feat(webpack,cli): standalone build mode (#4661)
* feat(webpack,cli): standalone build mode

* revert typo
2019-01-03 23:57:50 +03:30
Sébastien Chopin
498c4f11d3 feat: better stack traces for SSR error, show error with correct URL and use eventsource-polyfill (#4600)
[release]
2018-12-23 12:10:36 +03:30
Kevin Marrec
f1377a7f8d feat(ts): provide type checking through fork-ts-checker-webpack-plugin (#4611) 2018-12-23 11:13:51 +03:30
Kevin Marrec
4d5274215a feat(ts): add TSX support (#4613) 2018-12-23 02:12:20 +03:30
Xin Du (Clark)
324135df51 refactor: @nuxt/utils (#4609) 2018-12-23 00:35:13 +03:30
Clark Du
90f42a618e refactor: remove unused properties in base config 2018-12-21 15:18:14 +00:00
Xin Du (Clark)
d723e49b2b
feat: attach ts-loader options on build.loaders.ts (#4572) 2018-12-17 15:45:01 +00:00
Kevin Marrec
75e3df6be5 fix(ts): switch from babel preset to ts-loader (#4563) 2018-12-17 15:21:53 +00:00
Kevin Marrec
7145c1ab5d feat(builder): optional typescript support (#4557) 2018-12-15 10:25:08 +03:30
Clark Du
28300ee0f9 refactor: remove extendedConfig.devtool check 2018-12-12 10:10:24 +00:00
Clark Du
8d728da3c7 refactor: remove unnecessary env 2018-12-12 09:38:06 +00:00
Alexander Lichter
f1ff6341ea feat: add process.modern (#4532) 2018-12-12 13:03:19 +03:30
Alexander Lichter
c60b1945e8 chore: cleanup (#4529) 2018-12-12 10:01:49 +03:30
Alexander Lichter
8e0b5081f2 fix: allow pcss ending for webpack loader (#4530)
[skip ci]
2018-12-12 09:52:43 +03:30
Alexander Lichter
88668f0fc4 chore: add plugin suffix for ExtractCssChunksPlugin (#4528) 2018-12-11 20:56:28 +00:00
Alexander Lichter
c6d820aad8 feat(webpack): add experimental HardSourceWebpackPlugin support (#4527) 2018-12-12 00:19:16 +03:30
Dmitry Molotkov
33edef2d40 fix(webpack): allow changing devtool with extend (#4515) 2018-12-11 01:04:41 +03:30
Xin Du (Clark)
669ffa51ed refactor: migrate to extract-css-chunks-webpack-plugin (#4495)
fixes #4131.
2018-12-09 13:58:08 +03:30
Alexander Lichter
f1b2ca3d60 feat: add an option to disable FriendlyErrorsWebpackPlugin (#4498) 2018-12-09 13:38:59 +03:30
Clark Du
e6808c57ef fest: add build.corssorgin (#4472) 2018-12-05 19:51:58 +03:30
Pooya Parsa
0f104aa588
feat: improve SSR bundle (#4439)
- Better insights and inspection for server bundle
- Remove all vue related dependencies from vue-renderer package as much as possible to reduce install size of nuxt-start
- Support for single file distributions (serverless)
- Remove server-bundle.json and use the standard .js files for dist/server
- Mitigate CALL_AND_RETRY_LAST Allocation failed errors. Most of the cases happen on JSON.parse() the part when loading bundle. (#4225, #3465, #1728, #1601, #1481)
- Reduce server dist size by removing escape characters caused by JSON serialize
- Faster dev reloads and production start by removing extra JSON.serialize/JSON.parse time
- Less memory usage
- General performance improvements and refactors
2018-12-01 13:43:28 +03:30
Pooya Parsa
06ddfbb77b fix(webpack): deepClone before calling extendConfig (#4464) 2018-11-30 20:22:53 +00:00
Alexander Lichter
71136fc9b6 feat: allow lang="postcss" in Vue SFCs (#4417)
* fix: allow postcss lang as tag

* refactor: own postcss rule
2018-11-30 16:23:44 +01:00
Clark Du
3abc9e815e
fix: transpile server not work (#4338) 2018-11-15 22:02:55 +00:00
Clark Du
3702dfe5dc
refactor: add node_env in webpack DefinePlugin (#4330) 2018-11-14 12:00:12 +00:00
Clark Du
853ca4e7d4
refactor: styleLoader and postcss (#4318) 2018-11-12 21:18:50 +00:00
Clark Du
2c4bd57101
refactor: perf loader (#4299) 2018-11-08 22:26:52 +00:00
Pooya Parsa
57f66726d0 fix: fix typo 2018-11-09 01:43:39 +03:30
Pooya Parsa
663c00ddd4 fix(webpack): use env.minimalCLI 2018-11-09 01:24:24 +03:30
Pooya Parsa
c39c7cd51e update webpack/base for webpackbar 3.0.2 2018-11-08 14:46:07 +03:30
Pooya Parsa
7c4e77ffb9
feat: dx improvements (#4259) 2018-11-08 12:45:56 +03:30
Clark Du
2a36dbad22
feat: client mode modern and support dev/generate (#4264) 2018-11-07 23:37:06 +00:00
Clark Du
78e3563687 feat: terser compress es6 forms in modern build (#4241) 2018-11-01 04:59:17 +01:00
Clark Du
bed0714fad
feat: modern build (#4231)
* feat: modern build

* refactor: use single module import for lodash

* refactor: add credit comment for modern plugin

* feat: ssr modern build

* fix: not null check for request

* fix: not null check for request.headers

* feat: add modern argument on build command

* refactor: simpilfy filenames for modern

* refactor: use packages/webpack src instead of dist in test

* test: add feature test for modern build
2018-10-31 15:52:35 +00:00
Pooya Parsa
39b558f59c
refactor core into sub-packages (#4202) 2018-10-31 00:12:53 +03:30
Clark Du
ae9de93a45 feat: move @nuxtjs/babel-preset-app into nuxt mono-repo (#4205) 2018-10-26 21:28:21 +03:30
Alexander Lichter
48393b33c7 refactor: small improvements (#4194) 2018-10-25 14:27:52 +03:30
Dmitry Molotkov
a3ba6e96ca fix: check styleResources for existence (#4155) 2018-10-25 14:25:05 +03:30
Clark Du
9df5f49e07 feat: split builder into more refined modules (#4171)
New packages:
- `@nuxt/webpack`
- `@nuxt/generator`
2018-10-24 20:25:18 +03:30