apple1js/webpack.config.js

24 lines
471 B
JavaScript
Raw Normal View History

const path = require('path');
module.exports =
{
devtool: 'source-map',
entry: {
apple1: path.resolve('js/entry1.js')
},
output: {
path: path.resolve('dist/'),
library: 'Apple1',
libraryExport: 'Apple1',
libraryTarget: 'var'
},
devServer: {
compress: true,
publicPath: '/dist/',
2020-09-09 03:48:44 +00:00
watchContentBase: true,
watchOptions: {
ignored: /node_modules/
}
}
};