I had some trouble getting webpack to work with the aos library for animations, which uses an import statement to nab an scss file in its js code.
I have filed an issue and PR on github to cover this issue
Before I did this i got errors such as
error in ./node_modules/aos/src/sass/aos.scss
Module parse failed: Unexpected character '@' (1:0)
You may need an appropriate loader to handle this file type.
The following change to webpack.config.js worked , by adding node_modules in a bracket. So I have put that in the pull request in case this is helpful for the community.