diff options
| author | James Barnett <noreply@jamesbarnett.xyz> | 2025-08-01 22:03:50 +0100 |
|---|---|---|
| committer | James Barnett <noreply@jamesbarnett.xyz> | 2025-08-01 22:03:50 +0100 |
| commit | 64114d594042bd63f0dd3878d6fef31bdca7d245 (patch) | |
| tree | 3949644a11d4345dd4bf551386a3174d544b5004 /webpack.config.js | |
| parent | 4ed6cae45c96166f22b1d295bda12dd9913385a8 (diff) | |
| download | js-raytracer-64114d594042bd63f0dd3878d6fef31bdca7d245.tar.xz js-raytracer-64114d594042bd63f0dd3878d6fef31bdca7d245.zip | |
Tree-shake chart imports. Minify bundle and generate sourcemaps.
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/webpack.config.js b/webpack.config.js index 1162afd..84cf57f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ const CopyPlugin = require('copy-webpack-plugin'); module.exports = { entry: './src/ui/index.ts', - devtool: 'inline-source-map', + devtool: 'source-map', module: { rules: [ { @@ -21,6 +21,9 @@ module.exports = { path: path.resolve(__dirname, 'dist'), clean: true }, + optimization: { + minimize: true + }, plugins: [ new CopyPlugin({ patterns: [ |