Skip to content

Instantly share code, notes, and snippets.

@rwboyer
Created September 2, 2016 17:41
Show Gist options
  • Select an option

  • Save rwboyer/5663c99273d53a3fdf9d24907525e951 to your computer and use it in GitHub Desktop.

Select an option

Save rwboyer/5663c99273d53a3fdf9d24907525e951 to your computer and use it in GitHub Desktop.
const htmlStandards = require('spike-html-standards')
const cssStandards = require('spike-css-standards')
const latest = require('babel-preset-latest')
const sass = require('sass-loader')
const extract_plug = require('extract-text-webpack-plugin')
module.exports = {
matchers: { css: '*.scss' },
module: {
loaders: [
{ test: /\.scss$/, loaders: ['postcss-loader', 'sass-loader'] }
]
},
devtool: 'source-map',
ignore: ['**/layout.html', '**/_*', '**/.*', 'bower_components/'],
reshape: (ctx) => {
return htmlStandards({
parser: false,
webpack: ctx,
locals: { foo: 'bar' }
})
},
postcss: (ctx) => {
return cssStandards({ parser: false, webpack: ctx })
},
babel: { presets: [latest] }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment