node.js version : v6.2.1webpack version : latestindexhtml-webpack-plugin version : latest
Context:
I am trying to build a single-page application using Webpack and indexhtml-webpack-plugin. The file I am trying to compile is in another directory that the current working directory.
Issue:
When I pass an absolute path in the entry field, I get the: Error: Cannot find module "./styles/template.css" error. It finds the index.html file to compile but cannot resolve its dependencies and relative paths.
When I specify the context field, I get: TypeError: Cannot read property 'origins' of undefined error.
node.js
version : v6.2.1webpack
version : latestindexhtml-webpack-plugin
version : latestContext:
I am trying to build a single-page application using
Webpack
andindexhtml-webpack-plugin
. The file I am trying to compile is in another directory that the current working directory.Issue:
entry
field, I get the:Error: Cannot find module "./styles/template.css"
error. It finds theindex.html
file to compile but cannot resolve its dependencies and relative paths.context
field, I get:TypeError: Cannot read property 'origins' of undefined
error.Code: