mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
chore: cherry-pick goodies from #4235
Co-authored-by: Sébastien Chopin <seb@chopin.io>
This commit is contained in:
parent
d6b505aa50
commit
37cd24c261
@ -5,7 +5,8 @@
|
|||||||
"distributions/*"
|
"distributions/*"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "yarn clean && node -r esm ./scripts/package",
|
"build": "yarn clean && yarn pkg",
|
||||||
|
"pkg": "node -r esm ./scripts/package",
|
||||||
"clean": "yarn clean:build && yarn clean:examples && yarn clean:test",
|
"clean": "yarn clean:build && yarn clean:examples && yarn clean:test",
|
||||||
"clean:build": "rimraf distributions/*/dist packages/*/dist",
|
"clean:build": "rimraf distributions/*/dist packages/*/dist",
|
||||||
"clean:examples": "rimraf examples/*/dist examples/*/.nuxt",
|
"clean:examples": "rimraf examples/*/dist examples/*/.nuxt",
|
||||||
|
@ -96,8 +96,8 @@ export class WebpackBundler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Configure compilers
|
// Configure compilers
|
||||||
this.compilers = compilersOptions.map((compilersOption) => {
|
this.compilers = compilersOptions.map((compilerOptions) => {
|
||||||
const compiler = webpack(compilersOption)
|
const compiler = webpack(compilerOptions)
|
||||||
|
|
||||||
// In dev, write files in memory FS
|
// In dev, write files in memory FS
|
||||||
if (options.dev) {
|
if (options.dev) {
|
||||||
|
Loading…
Reference in New Issue
Block a user