1.7.2 • Published 5 years ago

@mixup/mix v1.7.2

Weekly downloads
20
License
MIT
Repository
github
Last release
5 years ago

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