Closed powderham closed 5 years ago
So you have to tell meteor-webpack
which configuration should be used by using WEBPACK_CONFIG_FILE
env variable . Otherwise, it will try to import webpack.config.js
that doesn't exist in your project :)
Hi @ardatan I'm taking a look at this again.
How exactly is one supposed to specify WEBKACP_CONFIG_FILE
, like the following?:
"start": "WEBPACK_CONFIG_FILE=\"./webpack.dev.js\" meteor run --settings dev-settings.json",
Edit: I fixed this, the problem was with my specified import (path instead of filename) - it should have been
"start": "WEBPACK_CONFIG_FILE=webpack.dev.js meteor run --settings dev-settings.json",
Hi @ardatan - firstly, thanks a lot for creating this, it's really a great tool.
I have implemented a standard config, I'll write it out at the bottom in case you're interested.
If I want to define certain plugins by environment, such as
devtool: "inline-source-map"
, how do I do that?I am receiving the error:
Cannot read property 'getSourceHash' of undefined (at Object.processFilesForTarget)
.My setup is as follows, trying to use the webpack docs alongside yours:
webpack.dev.js
webpack.prod.js
webpack.common.js