Dont even remember what was done :D
This commit is contained in:
27
client/webpack.config.prod.js
Normal file
27
client/webpack.config.prod.js
Normal file
@@ -0,0 +1,27 @@
|
||||
const path = require('path')
|
||||
const CleanPlugin = require('clean-webpack-plugin')
|
||||
|
||||
module.exports = {
|
||||
mode: 'production',
|
||||
entry: './src/app.ts',
|
||||
output: {
|
||||
filename: 'bundle.js',
|
||||
path: path.resolve(__dirname, 'dist')
|
||||
},
|
||||
devtool: 'nosources-source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
use: 'ts-loader',
|
||||
exclude: /node_modules/
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.ts', '.js']
|
||||
},
|
||||
plugins: [
|
||||
new CleanPlugin.CleanWebpackPlugin()
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user