shaun-build
v0.1.0
Published
A front-end build tool.
Downloads
3
Readme
shaun-build
A front-end build tool.
Usage
- based on webpack
- support es2015
Install
npm install shaun-build --save
How to use
shaun-build
shaun-build --watch
Add a option in package.json.
shaunBuild: {
entry: './tools/index.js'
}
Lifecycle
shaunBuild.on('beforeWatch', function() {});
shaunBuild.on('beforeBuild', function() {});
shaunBuild.on('afterWatch', function() {});
shaunBuild.on('afterBuild', function() {});
API
shaunBuild.set()
shaunBuild.get()
shaunBuild.extend()
shaunBuild.util.copy(path, options)
shaunBuild.util.del(path)
shaunBuild.util.createDir(path)
shaunBuild.util.writeFile(file)
shaunBuild.webpack.extend(options, isCover)
shaunBuild.webpack.set('module.loaders', function(loaders) { loaders.push([]); })
shaunBuild.webpack.get()