webdiscus

webdiscus/pug-loader

Pug loader for Webpack renders pug to HTML or template function

JavaScript
88
4
ISC License

(config) => { // load the pug-loader before the vue-loader config.module .rule('pug') .test(/\.pug$/) .use('@webdiscus/pug-loader') .loader('@webdiscus/pug-loader') .options(pugLoaderOptions) .end() .end(); }, }); ``` > **Note:** > > The `vue-loader` has a priority before the `pug-loader` and the `pug-loader` will be used only if the `vue-loader` can't process the file. Usage in Vue SFC: ```vue <template lang="pug"> .wrapper h1 Hello World </template> ``` See the complete [source](https://github.com/webdiscus/pug-loader/tree/master/examples/vue-component/) of the example. --- <a id="recipes" name="recipes" href="#recipes"></a> ## Recipes - [Using with Pug filters](https://github.com/webdiscus/pug-loader/tree/master/examples/pug-filters) - [Using with Angular](https://github.com/webdiscus/pug-loader/tree/master/examples/angular-component/) - [Using with Vue](https://github.com/webdiscus/pug

Total donated
Undistributed
Share with your subscribers:

Recipients

How the donated funds are distributed

Support the dependencies of webdiscus/pug-loader

Account's avatar
HTML parser and serializer.
Account's avatar
Variant of merge that's useful for webpack configuration
Account's avatar
Babel compiler core.
Account's avatar
A Babel preset for each environment.
Account's avatar
TypeScript definitions for jest
Account's avatar
Simplifies creation of HTML files to serve your webpack bundles
Account's avatar
Delightful JavaScript Testing.
Account's avatar
Lightweight, robust, elegant syntax highlighting. A spin-off project from Dabblet.
Account's avatar
Pug plugin for webpack handles a template as an entry point, extracts CSS and JS from their sources referenced in Pug.
Account's avatar
A webpack loader for responsive images
Account's avatar
High performance Node.js image processing, the fastest module to resize JPEG, PNG, WebP, GIF, AVIF and TIFF images
Account's avatar
Load modules according to tsconfig paths in webpack.
Account's avatar
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.

Support the repos that depend on this repository

Top contributors

webdiscus's profile
webdiscus
74 contributions
rrundzans's profile
rrundzans
1 contributions

Recent events

Kivach works on the Obyte network, and therefore you can track all donations.

No events yet