2019-03-01 05:21:18 +00:00
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports =
|
|
|
|
{
|
|
|
|
devtool: 'source-map',
|
|
|
|
entry: {
|
2019-04-01 03:52:45 +00:00
|
|
|
main2: path.resolve('js/entry2.js'),
|
|
|
|
main2e: path.resolve('js/entry2e.js')
|
2019-03-01 05:21:18 +00:00
|
|
|
},
|
|
|
|
output: {
|
2019-04-01 03:52:45 +00:00
|
|
|
path: path.resolve('dist/'),
|
|
|
|
library: 'Apple2',
|
|
|
|
libraryExport: 'Apple2',
|
|
|
|
libraryTarget: 'var'
|
2019-03-01 05:21:18 +00:00
|
|
|
},
|
|
|
|
devServer: {
|
|
|
|
compress: true,
|
2019-03-05 03:55:35 +00:00
|
|
|
publicPath: '/dist/',
|
2020-08-23 13:36:09 +00:00
|
|
|
watchContentBase: true,
|
|
|
|
watchOptions: {
|
|
|
|
ignored: /node_modules/
|
|
|
|
}
|
2020-01-02 19:11:04 +00:00
|
|
|
},
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.2mg$/i,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'file-loader',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.rom$/i,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'raw-loader',
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2020-10-17 23:53:33 +00:00
|
|
|
{
|
|
|
|
test: /\.ts$/i,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
loader: 'ts-loader'
|
|
|
|
},
|
|
|
|
],
|
|
|
|
exclude: /node_modules/,
|
|
|
|
}
|
2020-01-02 19:11:04 +00:00
|
|
|
],
|
|
|
|
},
|
2020-10-17 23:53:33 +00:00
|
|
|
resolve: {
|
|
|
|
extensions: ['.ts', '.js'],
|
|
|
|
},
|
2019-03-01 05:21:18 +00:00
|
|
|
};
|