Skip to content

Instantly share code, notes, and snippets.

@romeovs
Last active October 7, 2015 14:06
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 romeovs/0116b8c54e8167546dc6 to your computer and use it in GitHub Desktop.
Save romeovs/0116b8c54e8167546dc6 to your computer and use it in GitHub Desktop.
var styles = require('./error.styl');
body
width 10px;
{
"name": "error",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"extract-text-webpack-plugin": "^0.8.2"
}
}
var path = require('path');
var extract = require('extract-text-webpack-plugin');
module.exports = {
entry: {
main: [
'./client.js'
]
}
, output: {
path: path.resolve(__dirname, '../assets')
, filename: '[name].js'
, chunkFilename: '[name]-[chunkhash].js'
}
, progress: true
, devtool: 'sourcemap'
, module: {
loaders: [
{
test: /\.styl$/
, loader: 'style!extract-text-webpack-plugin/loader!css!stylus'
, exclude: /node_modules/
}
]
, preLoaders: [
{
test: /\.styl$/
, loader: 'stylint?{"reporter":"stylint-stylish","semicolons":{"expect":"never","error":true}}'
, exclude: /node_modules/
}
]
}
, plugins: [
new extract('main.css', {
allChunks: true
})
]
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment