ge-lib-sys-ui
Version:
## Project setup ``` npm install ```
24 lines (23 loc) • 501 B
JavaScript
// 修改 src 为 test
const path = require('path')
module.exports = {
pages: {
index: {
entry: 'test/main.js',
template: 'public/index.html',
filename: 'index.html'
}
},
// 扩展 webpack 配置,使 packages 加入编译
chainWebpack: config => {
config.module
.rule('js')
.include.add(path.resolve(__dirname, 'packages'))
.end()
.use('babel')
.loader('babel-loader')
.tap(options => {
return options
})
}
}