Skip to content

gxlmyacc/vue-indent-pug-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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'] }
    ]
  },

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published