Simplify jade demo

This commit is contained in:
Jan Nicklas 2015-07-08 17:17:11 +02:00 committed by Jan Nicklas
parent ef42642f34
commit dd3244de6f
2 changed files with 4 additions and 4 deletions

View File

@ -2,5 +2,4 @@ doctype html
html
head
title my jade template
body
h1 Hello from jade
body

View File

@ -10,14 +10,15 @@ module.exports = {
module: {
loaders: [
{ test: /\.css$/, loader: ExtractTextPlugin.extract('style-loader', 'css-loader') },
{ test: /\.png$/, loader: 'file-loader' }
{ test: /\.png$/, loader: 'file-loader' },
{ test: /\.jade$/, loader: 'jade'}
]
},
plugins: [
new HtmlWebpackPlugin({
filename: 'jade-loader.html',
favicon: 'favicon.ico',
template: 'jade!./template.jade'
template: 'template.jade'
}),
new ExtractTextPlugin('styles.css')
]