Skip to content

Commit

Permalink
Merge branch 'main' of github.com:leuffen/themejs1
Browse files Browse the repository at this point in the history
  • Loading branch information
dermatthes committed Oct 11, 2023
2 parents d4dabe5 + 9f177ae commit c06c742
Show file tree
Hide file tree
Showing 15 changed files with 1,756 additions and 5,099 deletions.
17 changes: 9 additions & 8 deletions _tpl/_root/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
const path = require('path');
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const {ESBuildMinifyPlugin} = require("esbuild-loader");

module.exports = {
entry: {
Expand All @@ -25,6 +24,12 @@ module.exports = {
}
}
],


include: [
path.resolve(__dirname, "src"),
path.resolve(__dirname, "workspaces")
]
},
{
enforce: 'pre',
Expand All @@ -44,7 +49,7 @@ module.exports = {
extensions: ['.tsx', '.ts', '.js'],
},

devtool: "eval",
//devtool: "eval",
// switch to: 'development' to debug
mode: "production",

Expand All @@ -59,14 +64,10 @@ module.exports = {


],

optimization: {
minimize: true,
usedExports: true,
minimizer: [
new ESBuildMinifyPlugin({
target: "es2015"
})
]
usedExports: "global"
},
output: {
filename: '[name].js',
Expand Down
3 changes: 2 additions & 1 deletion embed.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import "src/default/loader";

@import "@leuffen/liscom-loader";

2 changes: 1 addition & 1 deletion embed.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import {initLoader} from "./src/helper/loader";
import {initLoader} from "@leuffen/liscom-loader";

initLoader()
Loading

0 comments on commit c06c742

Please sign in to comment.