Skip to content

Commit 6e3fcf9

Browse files
authored
Merge pull request #1856 from skaut/output-simplification
Simplified build process
2 parents 9118d76 + cb68bc5 commit 6e3fcf9

File tree

4 files changed

+42
-1771
lines changed

4 files changed

+42
-1771
lines changed

frontend.webpack.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import HtmlInlineScriptPlugin from "html-inline-script-webpack-plugin";
12
import HtmlWebpackPlugin from "html-webpack-plugin";
23
import path from "path";
34
import { sveltePreprocess } from "svelte-preprocess";
5+
import TerserPlugin from "terser-webpack-plugin";
46

57
export default (_, options) => ({
68
entry: {
@@ -51,6 +53,13 @@ export default (_, options) => ({
5153
},
5254
],
5355
},
56+
optimization: {
57+
minimizer: [
58+
new TerserPlugin({
59+
extractComments: false,
60+
}),
61+
],
62+
},
5463
output: {
5564
filename: "[name].js",
5665
publicPath: "",
@@ -64,6 +73,7 @@ export default (_, options) => ({
6473
minify: false,
6574
template: "src/frontend/index.html",
6675
}),
76+
new HtmlInlineScriptPlugin(),
6777
],
6878
resolve: {
6979
alias: {

gulpfile.js

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)