Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to update node-sass to sass and update image-webpack-loader #77

Open
richhauck opened this issue Aug 19, 2021 · 0 comments
Open

Need to update node-sass to sass and update image-webpack-loader #77

richhauck opened this issue Aug 19, 2021 · 0 comments

Comments

@richhauck
Copy link

Had difficulty publishing as node-sass is now deprecated. Installing sass and modifying config/webpack.loaders.js L76 to:
implementation: require("sass"), resolved this for me.

Also, wouldn't build when I had an image in the images folder as it threw the following error:

    ERROR in ./images/lights.jpg
    Module build failed (from ../node_modules/image-webpack-loader/index.js):
    Error: spawn /static-site-boilerplate/node_modules/mozjpeg/vendor/cjpeg ENOENT
        at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
        at onErrorNT (internal/child_process.js:465:16)
        at processTicksAndRejections (internal/process/task_queues.js:80:21)
     @ ./index.html (../node_modules/html-webpack-plugin/lib/loader.js!./index.html) 1:241-271

Upgrading to "image-webpack-loader": "^7.0.1", fixed this for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant