.ministarrc.json
MiniStar
has its own configuration file, create the configuration file of MiniStar
in the root directory (the directory where you run MiniStar
)
The spouse file name allows the following examples:
.ministarrc
.ministarrc.json
.ministarrc.yaml
.ministarrc.yml
.ministarrc.js
ministar.config.js
: Export aCommonJS
object, just likewebpack
#
Configuration#
scopeDefault: "plugins"
The scope named when the plugin ministar createPlugin
was created, like @[scope]/[name]
#
pluginRootDefault: process.cwd()
The path of the folder where the plug-in directory is located. The structure of creating and reading plug-ins is [pluginRoot]/plugins/[name]
#
outDirDefault: path.resolve(process.cwd(), './dist')
The output directory of the ministar bundler
#
externalDepsDefault: []
External dependencies, the values appearing in this array will not be packaged by the packaging tool.
#
authorDefault: undefined
Used to create plugins
#
licenseDefault: undefined
Used to create plugins
#
rollupPluginsDefault: []
An array of rollup
plugins for adding custom rollup
plugins