2023-02-26 01:30

This commit is contained in:
2023-02-26 01:30:37 +09:00
commit 9a13ccbd17
122 changed files with 32148 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
const path = require('path');
module.exports = {
entry: {
main: './src/index.ts',
},
output: {
filename: 'bundle.js',
//path: path.resolve(__dirname, 'build')
},
module: {
rules: [
{
test: /\.ts$/,
include: '/src',
exclude: '/node_modules/',
use: {
loader: 'babel-loader',
options: {
presets: ['@babel/preset-typescript'],
plugins: ['@babel/plugin-proposal-decorators']
}
}
}, {
test: /\.html$/, include: '/src',
use: ['file-loader?name=[name].[ext]', 'extract-loader', 'html-loader']
}
]
},
mode: 'development',
watch: true,
optimization: {
minimize: true,
concatenateModules: true
},
}