Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gxlmyacc/vue-indent-pug-loader
a vue pug template loader that the first line has space indent
https://github.com/gxlmyacc/vue-indent-pug-loader
pug pug-loader vue webpack
Last synced: 9 days ago
JSON representation
a vue pug template loader that the first line has space indent
- Host: GitHub
- URL: https://github.com/gxlmyacc/vue-indent-pug-loader
- Owner: gxlmyacc
- Created: 2018-12-09T05:18:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-09T05:31:30.000Z (about 6 years ago)
- Last Synced: 2024-11-14T14:17:38.982Z (about 1 month ago)
- Topics: pug, pug-loader, vue, webpack
- Language: JavaScript
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-indent-pug-loader
this is a vue pug template loader that the first line has space indent.
## Install
```bash
npm install vue-indent-pug-loader --save-dev
```or:
```bash
yarn add vue-indent-pug-loader --dev
```## Usage
```js
// webpack config loaders
{
test: /\.pug$/,
oneOf: [
// this applies to in Vue components
{ resourceQuery: /^\?vue/, use: ['vue-indent-pug-loader'] },
// this applies to pug imports inside JavaScript
{ use: ['raw-loader', 'vue-indent-pug-loader'] }
]
},
```