chore: update chobitsu

This commit is contained in:
redhoodsu
2022-11-29 20:59:04 +08:00
parent 0b357c27fe
commit 99472f807f
3 changed files with 11 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer')
.BundleAnalyzerPlugin
const BundleAnalyzerPlugin =
require('webpack-bundle-analyzer').BundleAnalyzerPlugin
exports = require('./webpack.prod')

View File

@@ -36,6 +36,13 @@ const cssMinifierLoader = {
options: {},
}
const rawLoader = {
loader: 'raw-loader',
options: {
esModule: false,
},
}
module.exports = {
entry: './src/index',
resolve: {
@@ -88,7 +95,7 @@ module.exports = {
},
{
test: /luna-dom-highlighter\.css$/,
use: ['css-loader'],
use: [rawLoader],
},
// https://github.com/wycats/handlebars.js/issues/1134
{

View File

@@ -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",