mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 13:45:18 +00:00
chore: disable webpack standalone, minify and enable minify for node by default
This commit is contained in:
parent
8b071c4efd
commit
d2e8c3bd78
@ -13,8 +13,8 @@ export default <Module> function slsModule () {
|
|||||||
const options = getoptions(nuxt.options, nuxt.options.serverless || {})
|
const options = getoptions(nuxt.options, nuxt.options.serverless || {})
|
||||||
|
|
||||||
// Tune webpack config
|
// Tune webpack config
|
||||||
nuxt.options.build._minifyServer = options.minify !== false
|
nuxt.options.build._minifyServer = false
|
||||||
nuxt.options.build.standalone = true
|
nuxt.options.build.standalone = false
|
||||||
|
|
||||||
// Tune generator
|
// Tune generator
|
||||||
nuxt.options.generate.crawler = false
|
nuxt.options.generate.crawler = false
|
||||||
|
@ -3,5 +3,6 @@ import { SLSTarget } from '../config'
|
|||||||
export const node: SLSTarget = {
|
export const node: SLSTarget = {
|
||||||
entry: '{{ runtimeDir }}/targets/node',
|
entry: '{{ runtimeDir }}/targets/node',
|
||||||
outName: 'index.js',
|
outName: 'index.js',
|
||||||
inlineChunks: false
|
inlineChunks: false,
|
||||||
|
minify: true
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user