Simplify jade demo
This commit is contained in:
parent
ef42642f34
commit
dd3244de6f
|
|
@ -2,5 +2,4 @@ doctype html
|
|||
html
|
||||
head
|
||||
title my jade template
|
||||
body
|
||||
h1 Hello from jade
|
||||
body
|
||||
|
|
@ -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')
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in New Issue