chore: disable webpack standalone, minify and enable minify for node by default

This commit is contained in:
Pooya Parsa 2020-11-14 23:01:57 +01:00
parent 8b071c4efd
commit d2e8c3bd78
2 changed files with 4 additions and 3 deletions

View File

@ -13,8 +13,8 @@ export default <Module> function slsModule () {
const options = getoptions(nuxt.options, nuxt.options.serverless || {})
// Tune webpack config
nuxt.options.build._minifyServer = options.minify !== false
nuxt.options.build.standalone = true
nuxt.options.build._minifyServer = false
nuxt.options.build.standalone = false
// Tune generator
nuxt.options.generate.crawler = false

View File

@ -3,5 +3,6 @@ import { SLSTarget } from '../config'
export const node: SLSTarget = {
entry: '{{ runtimeDir }}/targets/node',
outName: 'index.js',
inlineChunks: false
inlineChunks: false,
minify: true
}