Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
xinpingwang authored Jun 2, 2021
1 parent 0c0bf2a commit 41057bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/electron-webpack/src/targets/BaseTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function isAncestor(file: string, dir: string) {

function configureDevelopmentPlugins(configurator: WebpackConfigurator) {
const optimization = configurator.config.optimization!!
if (parseInt(String(webpackVersion)) >= 5) {
if (parseInt(String(webpackVersion), 10) >= 5) {
optimization.moduleIds = 'named'
}
else {
Expand Down
18 changes: 9 additions & 9 deletions packages/electron-webpack/src/targets/RendererTarget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@ export class BaseRendererTarget extends BaseTarget {
},
{
test: /\.svg$/,
use: [
{
loader: '@svgr/webpack',
},
{
loader: "url-loader",
options: configureFileLoader("imgs")
}
]
use: [
{
loader: '@svgr/webpack',
},
{
loader: "url-loader",
options: configureFileLoader("imgs")
}
]
},
{
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
Expand Down

0 comments on commit 41057bb

Please sign in to comment.