replace file-loader with assets to get demo mouse working again

fix mouse pointer
This commit is contained in:
Björn Dalfors
2024-04-05 14:37:38 +02:00
parent 6e5e2e0dd7
commit bb964aba20
7 changed files with 32 additions and 33 deletions

View File

@@ -90,4 +90,4 @@
"peerDependencies": {
"electron": "^29"
}
}
}

View File

@@ -1,6 +1,6 @@
// const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin')
const webpack = require('webpack')
module.exports = {
entry: {
@@ -63,13 +63,8 @@ module.exports = {
use: ['style-loader', 'css-loader'],
},
{
test: /\.(png|jpg|gif)$/,
use: [
{
loader: 'file-loader',
options: {},
},
],
test: /\.(png|jpg|gif)$/i,
type: 'asset/resource',
},
// {
// test: /\.node$/,
@@ -101,4 +96,4 @@ module.exports = {
// "react": "React",
// "react-dom": "ReactDOM"
},
};
}