Skip to content

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

vue loader plugin

Explaination

this is a rewrite of VueLoaderPlugin to solve the compatibility with webpack5

webpack5 has rewrited the ruleset module, which means the VueLoaderPlugin cannot use class Ruleset any more, instead, it should using the RuleSetCompiler

Installation

npm i --save-dev vue-loader-plugin
yarn add --dev vue-loader-plugin

usage

  • before

    // webpack.config.js
    const VueLoaderPlugin = require('vue-loader/lib/plugin')
    
    module.exports = {
        // ...
        plugins: [
            new VueLoaderPlugin()
        ]
    }
  • now

    // webpack.config.js
    const VueLoaderPlugin = require('vue-loader-plugin');
    module.exports = {
        // ...
        plugins: [
            new VueLoaderPlugin()
        ]
    }

About

a rewrite of VueLoaderPlugin

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages