ft-interactive / starter-kit

A template for IG pages
65 stars 15 forks source link

Webpack tries to build Origami main.js as Sass when somemodule/main.scss is imported #224

Closed aendra-rininsland closed 5 years ago

aendra-rininsland commented 5 years ago

Might be related to #158

aendra-rininsland commented 5 years ago

It's this issue here: https://github.com/webpack-contrib/sass-loader/issues/556

Workaround suggested via the Webpack Gitter:

You can make Webpack prefer scss files by adding a "resolve" section to your sass-loader rule section. You should set "mainFields" to ['sass', 'style', 'main'] and "extensions" to ['.scss', '.sass', '.css']

aendra-rininsland commented 5 years ago

Closed by #231.