Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

parcel-plugin-pug

0.3.1 • Public • Published

parcel-plugin-pug

Travis CI Build Status Appveyor Build status Dependencies npm package Conventional Commits License: MIT

parcel-plugin-pug

Pug template support for Parcel bundler

Features

  • Supports .pug and .jade template files
  • Correctly handles include and extends statements
  • Supports Pug filters
  • Resolves all assets inside template files

Coming features

  • Support HMR when changing template includes
  • Fix duplicated pug error messages
  • Fix variables with URL in mixins

Installation

yarn add parcel-plugin-pug

or

npm install parcel-plugin-pug

Getting error?

If you getting error like that

parcel src/content.pug
⏳  Building...
Server running at http://localhost:1234
🚨  Cannot find module 'parcel-bundler/src/Asset'

you need to install parcel-bundler by running npm install -D parcel-bundler or yarn add parcel-bundler in your project folder, because plugin uses parcel-bundler as peerDependency.

Keywords

none

install

npm i parcel-plugin-pug

Downloadsweekly downloads

68

version

0.3.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar