2023-02-26 01:30
This commit is contained in:
37
gepetto/webpack.config.js
Normal file
37
gepetto/webpack.config.js
Normal file
@@ -0,0 +1,37 @@
|
||||
const path = require('path');
|
||||
module.exports = {
|
||||
target: 'electron-renderer',
|
||||
entry: {
|
||||
app: './src/App.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-class-properties',
|
||||
['@babel/plugin-proposal-decorators',
|
||||
{ decoratorsBeforeExport: true }],
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
mode: 'development',
|
||||
watch: true,
|
||||
optimization: {
|
||||
minimize: true,
|
||||
concatenateModules: true
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user