Skip to content

Commit

Permalink
Update stylus-jade example
Browse files Browse the repository at this point in the history
  • Loading branch information
skozin committed Apr 7, 2015
1 parent 1c3cd85 commit 55e61ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions _example/stylus-jade/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ doctype html
head
title My awesome app
meta( charset="utf-8" )
link( href="[[ app.css ]]", media="all", rel="stylesheet" )
link( href="[[ app-*.css ]]", media="all", rel="stylesheet" )
body
p Hi everyone!
img( src="[[ images/hi.png ]]" )
img( src="[[ ./images/hi.png ]]" )
script( src="[[ app-*.js ]]" )
3 changes: 2 additions & 1 deletion _example/stylus-jade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"jade-html-loader": "bline/jade-html-loader",
"stylus": "^0.49.3",
"stylus-loader": "shama/stylus-loader",
"webpack": "^1.7.2"
"webpack": "^1.7.2",
"webpack-path-rewriter": "^1.1.2"
},
"dependencies": {}
}
4 changes: 2 additions & 2 deletions _example/stylus-jade/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var ExtractTextPlugin = require('extract-text-webpack-plugin'),
PathRewriterPlugin = require('../')
PathRewriterPlugin = require('webpack-path-rewriter')

module.exports = {
entry: {
Expand All @@ -26,7 +26,7 @@ module.exports = {
}]
},
plugins: [
new ExtractTextPlugin('app.css', { allChunks: true }),
new ExtractTextPlugin('app-[chunkhash].css', { allChunks: true }),
new PathRewriterPlugin()
]
}

0 comments on commit 55e61ea

Please sign in to comment.