I'm trying to import slick-theme.scss
in my parent scss as
@import "../node_modules/slick-carousel/slick/slick-theme.css";
but during bundle, I get errors on the files imported in slick-theme.scss
. Here's the error log
ERROR in ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./sass/app.scss
Module not found: Error: Can't resolve './ajax-loader.gif' in '/Users/Vishal/Documents/Work/nf-core/sass'
@ ./node_modules/css-loader!./node_modules/postcss-loader/lib!./node_modules/sass-loader/lib/loader.js!./sass/app.scss 6:89679-89707
I tried adding resolve-url-loader
as well to the webpack configuration, but that doesn't help.
Here's my webpack scss loader section
loaders: commonConfig.module.loaders.concat({
test: /\.s?css$/,
exclude: /(node_modules)/,
use: ExtractTextPlugin.extract({
fallback: 'style-loader',
use: ['css-loader', 'postcss-loader', 'sass-loader']
})
})