2020-04-04 02:18:47 -04:00
---
page_type: sample
products:
- office-sp
languages:
- javascript
- typescript
extensions:
contentType: samples
technologies:
- SharePoint Framework
platforms:
- Handlebars
createdDate: 3/5/2017 12:00:00 AM
---
2017-03-07 15:57:26 -05:00
## SPFx Sample with Handlebars.js
2020-04-04 02:18:47 -04:00
This sample demonstrate how to set up SPFx to use [Handlebars ](http://handlebarsjs.com ) through [webpack loader ](https://webpack.github.io/docs/loaders.html ).
2017-03-07 15:57:26 -05:00
## Used SharePoint Framework Version
2018-02-26 03:01:51 -05:00
![drop ](https://img.shields.io/badge/drop-1.4.1-green.svg )
2017-03-07 15:57:26 -05:00
## Applies to
2020-06-09 03:09:22 -04:00
* [SharePoint Framework Developer ](https://docs.microsoft.com/sharepoint/dev/spfx/sharepoint-framework-overview )
* [Office 365 developer tenant ](https://docs.microsoft.com/sharepoint/dev/spfx/set-up-your-developer-tenant )
2017-03-07 15:57:26 -05:00
## Solution
Solution|Author(s)
--------|---------
2018-02-26 03:01:51 -05:00
SPFx-Handlebars | Stefan Bauer - n8d ([@stfbauer](https://twitter.com/stfbauer))
2017-03-07 15:57:26 -05:00
## Version history
Version|Date|Comments
-------|----|--------
2018-02-26 03:01:51 -05:00
1.1|March 21, 2018|Update to Version 1.4.1
2017-03-07 15:57:26 -05:00
1.0|March 5, 2017|Initial release
## Disclaimer
**THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.**
### Building the code
```bash
git clone the repo
npm i
npm i -g gulp
2018-02-26 03:01:51 -05:00
gulp serve
2017-03-07 15:57:26 -05:00
```
This package produces the following:
* lib/* - intermediate-stage commonjs build artifacts
* dist/* - the bundled script, along with other resources
* deploy/* - all resources which should be uploaded to a CDN.
2018-02-26 03:01:51 -05:00
< img src = "https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/handlebarsjs-webpack-loader" / >