@mixup/mix
v1.7.2
Published
A modular build tool based on webpack.
Downloads
7
Readme
mix
更易上手的前端构建工具,基于 webpack
Installation
npm i @mixup/mix -D
Usage
mix.conf.js
var mix = require('@mixup/mix')
mix.set({
entry: './src/index.js',
dist: './dist',
template: './index.tpl',
hash: true,
extractCSS: true,
devServer: { port: 8080 }
})
module.exports = mix.resolve()
# development
node_modules/.bin/mix watch
# production
node_modules/.bin/mix build -p
# or use webpack
NODE_ENV=production webpack --config mix.conf.js