I've created a minimal file global.sass with the following contents (taken from here).
$font-stack: Helvetica, sans-serif
$primary-color: #333
body
font: 100% $font-stack
color: $primary-color
In my webpack.config.js I have added the following loaders to module section (the second one taken from here as sugested on Webpack's page here).
module: {
loaders: [
{ test: /\.js$/, loader: "babel", exclude: /node_modules/ },
{ test: /\.sass$/, loader: "sass-loader", exclude: /node_modules/ }
]
},
In my gullible hopes I thought that running webpack --progress
would produce a CSS file but apparently, nothing like that occurs. I only get a new version of bundle.js but the contents of the global.sass file aren't anywhere in it. No CSS file's produced at all.