Skip to content

Commit

Permalink
chore: update chobitsu
Browse files Browse the repository at this point in the history
  • Loading branch information
surunzi committed Nov 29, 2022
1 parent 0b357c2 commit 99472f8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
4 changes: 2 additions & 2 deletions build/webpack.analyser.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin

exports = require('./webpack.prod')

Expand Down
9 changes: 8 additions & 1 deletion build/webpack.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ const cssMinifierLoader = {
options: {},
}

const rawLoader = {
loader: 'raw-loader',
options: {
esModule: false,
},
}

module.exports = {
entry: './src/index',
resolve: {
Expand Down Expand Up @@ -88,7 +95,7 @@ module.exports = {
},
{
test: /luna-dom-highlighter\.css$/,
use: ['css-loader'],
use: [rawLoader],
},
// https://github.com/wycats/handlebars.js/issues/1134
{
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"postcss-clean": "^1.1.0",
"postcss-loader": "^3.0.0",
"postcss-prefixer": "^2.1.2",
"raw-loader": "^4.0.2",
"sass-loader": "^13.0.2",
"webpack": "^5.73.0",
"webpack-bundle-analyzer": "^4.5.0",
Expand Down

0 comments on commit 99472f8

Please sign in to comment.