DEV Community

Discussion on: Add Webpack to Middleman

Collapse
 
hellokatili profile image
hellokatili

Thank you! This helped me a lot!!! 💙

I had to change -d to --devtool source-map in line 6 in config.rb:
"./node_modules/webpack/bin/webpack.js --watch -d --progress --color"
Otherwise I would get this error:

[webpack-cli] Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema.
Enter fullscreen mode Exit fullscreen mode
Collapse
 
pmallol profile image
Paula Mallol

Thanks for this! I'm glad it was useful :D