Skip to content

Instantly share code, notes, and snippets.

@taiansu
Last active August 29, 2015 14:11
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taiansu/7aa911199191baff488e to your computer and use it in GitHub Desktop.
Save taiansu/7aa911199191baff488e to your computer and use it in GitHub Desktop.
webpack config template
module.exports = {
entry: "./main.coffee",
output: {
path: __dirname,
filename: "bundle.js"
},
module: {
loaders: [
{ test: /\.css$/, loader: "style!css" },
{ test: /\.coffee$/, loader: "coffee" },
{ test: /\.cjsx$/, loader: "cjsx" },
{
test: /\.sass$/,
loader: "style!css!sass?indentedSyntax=true&outputStyle=expanded"
}
]
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment