0.5.2 • Published 4 years ago

@zero-scripts/config.webpack v0.5.2

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

@zero-scripts/config.webpack

Note: You don't need to install this package manually. This package exists to be used inside extensions or presets.

Options

OptionTypeDefault
useSourceMapbooleantrue
useTypescriptbooleantrue if tsconfig.json exists, else false
additionalEntryarray[]
moduleFileExtensionsarray[]
jsFileExtensionsarray[]
pathsobject
paths.rootstring
paths.srcstringsrc
paths.buildstringbuild
paths.indexJsstringsrc/index
paths.indexHtmlstringpublic/index.html
paths.publicstringpublic

Passing options

Turn off source maps

package.json

{
+  "zero-scripts": {
+    "config.webpack": {
+      "sourceMap": false
+    }
+  }
}

Handle source files which placed in the root directory

package.json

{
  ...
+  "zero-scripts": {
+    "config.webpack": {
+      "paths": {
+         "src": "",
+         "indexJs": "index"
+      }
+    }
+  }
}

Main documentation