Skip to content

sergey-peskov/vue-pug-alias

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages