Skip to content

Instantly share code, notes, and snippets.

@chrisbuttery
Last active August 29, 2015 14:21
Show Gist options
  • Save chrisbuttery/c23bf8d4c7823e2d0bec to your computer and use it in GitHub Desktop.
Save chrisbuttery/c23bf8d4c7823e2d0bec to your computer and use it in GitHub Desktop.
module: {
preLoaders: [
{
test: /\.js$/,
exclude: [
/node_modules/,
/build/
],
loader: "eslint-loader"
}
],
loaders: [
{
test: /\.(svg)$/,
loader: 'raw-loader'
},
{
test: /\.js$/,
exclude: /node_modules/,
loader: 'babel-loader'
},
{
test: /\.css$/,
exclude: /node_modules/,
loader: ExtractTextPlugin.extract("style-loader", "css-loader!cssnext-loader")
},
{
test: /\.test\/tests.js$/,
exclude: /node_modules/,
loaders: ['babel-loader', 'mocha-loader']
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment