1.0.3 • Published 5 years ago

vue-pug-alias v1.0.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

vue-pug-alias

Creates aliases for pug-plain-loader

Installation

npm install -D vue-pug-alias

Usage

With this loader you can create aliases for pug.

Add the following entry to your "webpack.config".

Attention! the path to the alias must start at the root of the project.

{
    module: {
        rules: [
            {
                test: /\.pug$/,
                loader: 'vue-pug-alias',
                options: {
                    alias: { // A list of your aliases
                        ['@img']: 'src/assets/img',
                    }
                }
            }
        ]
    }
}