dust-html-loader

1.0.2 • Public • Published

dust to html loader for webpack

NPM version

Compiles dust templates with partials and exports the compiled HTML, allowing for rendering of the templates to static html files with html-webpack-plugin or passing on to html-loader.

Built for use with the webpack-dev-server testing environment in mind.

Usage

plugins: [
  new HtmlWebpackPlugin({
    filename: 'index.html',
    template: '!!dust-html-loader!src/views/index.dust'
  }),
]

OR

plugins: [
  new HtmlWebpackPlugin({
    filename: 'index.html',
    template: '!!html-loader!dust-html-loader?preLoader=true!src/views/index.dust'
  }),
]

Thanks 🙏♥️

Examples and code fragments used from both dust-loader and dust-loader-complete.

Readme

Keywords

Package Sidebar

Install

npm i dust-html-loader

Weekly Downloads

3

Version

1.0.2

License

MIT

Unpacked Size

4.82 kB

Total Files

4

Last publish

Collaborators

  • robertdalesmith