Open rkachach opened 4 years ago
I had not test it, but it should works:
rmdir dist /s
webpack
copy app\config.local.js dist\
Thanks for the quick response.
I modified this line and after adding the following to webpack.config.js (because I was getting an error 'cannot resolve fs':
config.node = { fs: 'empty' };
module.exports = {
Now I have this error:
var config = Encore.getWebpackConfig();
config.node = { fs: 'empty' };
Anyway, is Windows supported or should I switch to a Linux machine?
Here https://github.com/webpack-contrib/css-loader/issues/447#issuecomment-606542351 recommend to use
target: 'node',
instead of fs:'empty'
Anyway, i think that always is better works in a linux machine ;)
Thanks, I fixed this now I'm getting the following, any clues?
> webpack && [ -f dist/config.local.js ] || copy app\config.local.js dist
D:\Projects\mumble-web\node_modules\webpack-cli\bin\cli.js:93
throw err;
^
ReferenceError: Encore is not defined
I have been facing a similar issue here for days. The error came after I ran the "npm install" command. I also tried @rkachach and this https://github.com/webpack-contrib/css-loader/issues/447#issuecomment-606542351 answers but no one worked for me.
I found the working steps to install all of the dependencies here:
"prepare": "rm -rf dist && npm run build",
from the package.json file
it seems that scripts are meant for a Linux machine. Is there anyway to build for windows?