Skip to content

Commit 0e8f709

Browse files
author
Mohamed Cherif Bouchelaghem
authored
Merge branch 'master' into major
2 parents 39319c3 + 0e3f94c commit 0e8f709

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
[![dependencies](https://img.shields.io/david/macku/can-stache-loader.svg)](https://david-dm.org/macku/can-stache-loader)
33
[![dev dependencies](https://img.shields.io/david/dev/macku/can-stache-loader.svg)](https://david-dm.org/macku/can-stache-loader?type=dev)
44

5+
<div align="center">
6+
<a href="https://github.com/webpack/webpack">
7+
<img width="200" height="200"
8+
src="https://webpack.js.org/assets/icon-square-big.svg">
9+
</a>
10+
</div>
11+
512
# CanJS Stache template loader for webpack
613

714
Compiles [CanJS Stache](https://github.com/canjs/can-stache) templates with [can-view-parser](https://github.com/canjs/can-view-parser) and allows to load them with [webpack](https://webpack.github.io/)
@@ -28,6 +35,8 @@ yarn add can-stache-loader
2835

2936
### Configure webpack 2+
3037

38+
**webpack.config.js**
39+
3140
```js
3241
{
3342
module: {
@@ -46,7 +55,8 @@ yarn add can-stache-loader
4655
### Import stache templates in your [CanJS](https://canjs.com/) project
4756

4857
```js
49-
const tpl = require('./template.stache');
58+
import tpl from './template.stache';
59+
5060
const html = tpl({
5161
foo: 'bar'
5262
});

0 commit comments

Comments
 (0)