Skip to content

Commit

Permalink
Merge pull request #1856 from skaut/output-simplification
Browse files Browse the repository at this point in the history
Simplified build process
  • Loading branch information
marekdedic authored Dec 22, 2024
2 parents 9118d76 + cb68bc5 commit 6e3fcf9
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 1,771 deletions.
10 changes: 10 additions & 0 deletions frontend.webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import HtmlInlineScriptPlugin from "html-inline-script-webpack-plugin";
import HtmlWebpackPlugin from "html-webpack-plugin";
import path from "path";
import { sveltePreprocess } from "svelte-preprocess";
import TerserPlugin from "terser-webpack-plugin";

export default (_, options) => ({
entry: {
Expand Down Expand Up @@ -51,6 +53,13 @@ export default (_, options) => ({
},
],
},
optimization: {
minimizer: [
new TerserPlugin({
extractComments: false,
}),
],
},
output: {
filename: "[name].js",
publicPath: "",
Expand All @@ -64,6 +73,7 @@ export default (_, options) => ({
minify: false,
template: "src/frontend/index.html",
}),
new HtmlInlineScriptPlugin(),
],
resolve: {
alias: {
Expand Down
32 changes: 0 additions & 32 deletions gulpfile.js

This file was deleted.

Loading

0 comments on commit 6e3fcf9

Please sign in to comment.