Skip to content

Commit

Permalink
fix missing css
Browse files Browse the repository at this point in the history
  • Loading branch information
jemikanegara committed Apr 17, 2024
1 parent 26e407c commit 70fc782
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 23 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const CheckIfTranslatable = require('./utility.js');
require('./weploy.css');
const cssModule = require('./weploy.css?raw');
const css = cssModule.default || cssModule;

Expand Down
45 changes: 23 additions & 22 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"css-loader": "^7.1.1",
"css-minimizer-webpack-plugin": "^6.0.0",
"mini-css-extract-plugin": "^2.8.1",
"raw-loader": "^4.0.2"
"raw-loader": "^4.0.2",
"terser-webpack-plugin": "^5.3.10"
}
}
2 changes: 2 additions & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin'); // Add this line

module.exports = {
entry: './browser.js', // Update this with your entry file
Expand Down Expand Up @@ -49,6 +50,7 @@ module.exports = {
minimize: true,
minimizer: [
new CssMinimizerPlugin(),
new TerserPlugin(), // Add this line
],
},
};

0 comments on commit 70fc782

Please sign in to comment.