2019-02-28 21:21:18 -08:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
devtool: 'source-map',
|
|
|
|
entry: {
|
2019-03-31 20:52:45 -07:00
|
|
|
main2: path.resolve('js/entry2.js'),
|
|
|
|
main2e: path.resolve('js/entry2e.js')
|
2019-02-28 21:21:18 -08:00
|
|
|
},
|
|
|
|
output: {
|
2019-03-31 20:52:45 -07:00
|
|
|
path: path.resolve('dist/'),
|
|
|
|
library: 'Apple2',
|
|
|
|
libraryExport: 'Apple2',
|
|
|
|
libraryTarget: 'var'
|
2019-02-28 21:21:18 -08:00
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
compress: true,
|
2019-03-04 19:55:35 -08:00
|
|
|
publicPath: '/dist/',
|
|
|
|
watchContentBase: true
|
2020-01-02 11:11:04 -08:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.2mg$/i,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'file-loader',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.rom$/i,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'raw-loader',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2019-02-28 21:21:18 -08:00
|
|
|
};
|