webpack.base.conf.js
467 Bytes
const path = require('path');
const config = require('../../package.json');
module.exports = {
output: {
path: path.join(__dirname, `../dist/${config.name}/yohologin/`),
filename: 'main.js'
},
devServer: {
port: 8081
},
module: {
rules: [
{
test: /\.js$/,
exclude: [/node_modules/],
use: 'babel-loader'
}
]
},
plugins: []
};