mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-18 03:35:17 +00:00
bed0714fad
* 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
14 lines
266 B
JavaScript
14 lines
266 B
JavaScript
export default {
|
|
build: {
|
|
modern: true,
|
|
filenames: {
|
|
app: ({ isModern }) => {
|
|
return `${isModern ? 'modern-' : ''}[name].js`
|
|
},
|
|
chunk: ({ isModern }) => {
|
|
return `${isModern ? 'modern-' : ''}[name].js`
|
|
}
|
|
}
|
|
}
|
|
}
|