Welcome to curiosity-builder 👋
library build tools
Install
npm install -g curiosity-builder
Usage
curiosity-builder build
Config
module.exports = {
entry: [] || '',
cjs: {
type: 'babel' || 'rollup',
lazy: Boolean,
minify: Boolean,
},
importLibToEs: Boolean,
target: 'browser' || 'node',
runtimeHelpers: {},
extraBabelPresets = [],
extraBabelPlugins = [],
browserFiles = ['src/xxxx'],
nodeFiles = ['src/xxxx'],
nodeVersion,
disableTypeCheck,
lessInBabelMode: {},
sassInBabelMode: {},
extractCSS = false,
injectCSS = true,
cssModules: modules,
autoprefixer: autoprefixerOpts,
include = /node_modules/,
namedExports,
extraPostCSSPlugins = [],
lessInRollupMode = {},
sassInRollupMode = {},
}