Skip to content

Instantly share code, notes, and snippets.

@BruhKofi
Created July 27, 2017 00:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BruhKofi/bb375c98f2797c2bbdd59cbf59772a42 to your computer and use it in GitHub Desktop.
Save BruhKofi/bb375c98f2797c2bbdd59cbf59772a42 to your computer and use it in GitHub Desktop.
webpack config
module.exports = {
webpack: (config, { dev }) => {
config.module.rules.push(
{
test: /\.(css|scss)/,
loader: 'emit-file-loader',
options: {
name: 'dist/[path][name].[ext]'
}
},
{
test: /\.css$/,
loader: 'babel-loader!raw-loader'
},
{
test: /\.scss$/,
loader: 'babel-loader!raw-loader!sass-loader'
}
)
return config
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment