Webpack guide typos and config update
Replaced `asseturl` filter with `url` and added `($|\?)` to webpack file loader config for font-awesome support.
This commit is contained in:
parent
079158a2f1
commit
120243868b
|
@ -99,7 +99,7 @@ module.exports = {
|
||||||
{ test: /\.css$/,
|
{ test: /\.css$/,
|
||||||
loader: ExtractTextPlugin.extract(
|
loader: ExtractTextPlugin.extract(
|
||||||
'style-loader', 'css-loader') },
|
'style-loader', 'css-loader') },
|
||||||
{ test: /\.(woff2?|ttf|eot|svg|png|jpe?g|gif)$/,
|
{ test: /\.(woff2?|ttf|eot|svg|png|jpe?g|gif)($|\?)/,
|
||||||
loader: 'file' }
|
loader: 'file' }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -149,7 +149,7 @@ Now you need to include the files in your template. This will do it:
|
||||||
|
|
||||||
```html+jinja
|
```html+jinja
|
||||||
<link rel="stylesheet" href="{{
|
<link rel="stylesheet" href="{{
|
||||||
'/static/gen/styles.css'|asseturl }}">
|
'/static/gen/styles.css'|url }}">
|
||||||
<script type=text/javascript src="{{
|
<script type=text/javascript src="{{
|
||||||
'/static/gen/app.js'|asseturl }}" charset="utf-8"></script>
|
'/static/gen/app.js'|url }}" charset="utf-8"></script>
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue