33 lines
711 B
JavaScript
33 lines
711 B
JavaScript
|
const path = require('path');
|
||
|
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||
|
const HTMLWebpackPlugin = require('html-webpack-plugin');
|
||
|
const Package = require('./package');
|
||
|
|
||
|
module.exports = {
|
||
|
entry: './src/game/index.js',
|
||
|
devtool: 'inline-source-map',
|
||
|
performance: {
|
||
|
hints: false
|
||
|
},
|
||
|
"plugins": [
|
||
|
new HTMLWebpackPlugin({
|
||
|
title: Package.name,
|
||
|
template: path.join(__dirname, "src/game/index.html")
|
||
|
}),
|
||
|
],
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test: /\.js?$/,
|
||
|
exclude: /node_modules/
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: [ '.ts', '.js' ]
|
||
|
},
|
||
|
output: {
|
||
|
filename: 'game.js',
|
||
|
path: path.resolve(__dirname, 'app_web')
|
||
|
}
|
||
|
};
|