vue-pug-alias

Aliases for pug-plain-loader

Downloads
32
Stars
3
Committers
1

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