Last active
October 7, 2015 14:06
-
-
Save romeovs/0116b8c54e8167546dc6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var styles = require('./error.styl'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body | |
width 10px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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