magix-loader
v5.0.0
Published
webpack loader for magix view
Downloads
15
Readme
magix-loader
webpack loader
examples
module.exports = {
entry: './app/index.js', //默认,可覆盖
output: {
path: path.join(__dirname, 'build'),
filename: '[name].js'
},
module: {
rules: [{
test:/\.(?:mx|js)$/, // js or mx 后缀
include:[
path.resolve(__dirname,'app')//只处理app目录
],
use:[{
loader:'magix-loader',
options:{//编译器配置项,magix-loader 使用 magix-combine,这里是magix-combine的配置项 https://github.com/thx/magix-combine/issues/17
//compressCss:false
}
}]
}]
}
};