electron-userland / electron-userland/electron-webpack

Custom Webpack canot find modules

Open
#150 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
902
Forks
168
PR merge metrics
No merged PRs in 30d

Description

I wanted to add HtmlWebpackPlugin, so i added:

to my package.json
`"electronWebpack": {
"renderer": {
"webpackConfig": "webpack.renderer.additions.js"
}
}`

webpack.rendere.additions.js
```
const HtmlWebpackPlugin = require('html-webpack-plugin');
const webpack = require('webpack');

module.exports = {
plugins: [
new HtmlWebpackPlugin({
title: 'Vue Webpack Electron Boilerplate',
template: 'index.html',
inject: true
})
]
}
```

But now it can't seem to find any modules i am importing. I am importing vuex and it says it cannot find that module. But i do get my new html file loaded but the renderer's js doesn't overwrite the #app.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.