mirror of
https://github.com/ImSingee/hammal.git
synced 2024-11-23 21:19:20 +08:00
28 lines
481 B
JavaScript
28 lines
481 B
JavaScript
const path = require('path')
|
|
const webpack = require('webpack')
|
|
|
|
const mode = process.env.NODE_ENV || 'production'
|
|
|
|
module.exports = {
|
|
output: {
|
|
filename: `worker.${mode}.js`,
|
|
path: path.join(__dirname, 'dist'),
|
|
},
|
|
mode,
|
|
resolve: {
|
|
extensions: ['.ts', '.tsx', '.js'],
|
|
plugins: [],
|
|
},
|
|
module: {
|
|
rules: [
|
|
{
|
|
test: /\.tsx?$/,
|
|
loader: 'ts-loader',
|
|
options: {
|
|
transpileOnly: true,
|
|
},
|
|
},
|
|
],
|
|
},
|
|
}
|