Wondering what’s next for npm?Check out our public roadmap! »

vue-indent-pug-loader

0.1.1 • Public • Published

vue-indent-pug-loader

this is a vue pug template loader that the first line has space indent.

Install

npm install vue-indent-pug-loader --save-dev

or:

yarn add vue-indent-pug-loader --dev

Usage

// webpack config loaders
  {
    test: /\.pug$/,
    oneOf: [
      // this applies to <template lang="pug"> in Vue components
      { resourceQuery: /^\?vue/, use: ['vue-indent-pug-loader'] },
      // this applies to pug imports inside JavaScript
      { use: ['raw-loader', 'vue-indent-pug-loader'] }
    ]
  },

Install

npm i vue-indent-pug-loader

DownloadsWeekly Downloads

29

Version

0.1.1

License

MIT

Unpacked Size

2.21 kB

Total Files

3

Last publish

Collaborators

  • avatar