Skip to content

Instantly share code, notes, and snippets.

@natac13
Created March 27, 2016 12:26
Show Gist options
  • Save natac13/8fa9bc2cc5c90db9b397 to your computer and use it in GitHub Desktop.
Save natac13/8fa9bc2cc5c90db9b397 to your computer and use it in GitHub Desktop.
// client bundle without prerendering
{
test: /\.scss$/,
loader: 'style!css?module&localIdentName=[name]__[local]___[hash:base64:5]!sass',
include: appPath
}
// client bundle with prerendering or optimized with separate css
{
test: /\.scss$/,
loader: ExtractTextPlugin.extract('style', 'css?module&localIdentName=[name]__[local]___[hash:base64:5]!sass'),
include: appPath
}
// server bundle for prerendering
{
test: /\.scss$/,
loader: 'css/locals?module&localIdentName=[name]__[local]___[hash:base64:5]!sass',
include: appPath
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment