https://github.com/18566246732/vue-loader-plugin
a rewrite of VueLoaderPlugin
https://github.com/18566246732/vue-loader-plugin
ruleset vue vue-loader vueloaderplugin webpack webpack5
Last synced: 5 months ago
JSON representation
a rewrite of VueLoaderPlugin
- Host: GitHub
- URL: https://github.com/18566246732/vue-loader-plugin
- Owner: 18566246732
- Created: 2019-11-13T00:26:19.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-05-20T23:11:12.000Z (about 4 years ago)
- Last Synced: 2025-09-01T02:42:29.460Z (10 months ago)
- Topics: ruleset, vue, vue-loader, vueloaderplugin, webpack, webpack5
- Language: JavaScript
- Size: 23.4 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
npm i --save-dev vue-loader-plugin
yarn add --dev vue-loader-plugin
```
## usage
- before
```js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader/lib/plugin')
module.exports = {
// ...
plugins: [
new VueLoaderPlugin()
]
}
```
- now
```js
// webpack.config.js
const VueLoaderPlugin = require('vue-loader-plugin');
module.exports = {
// ...
plugins: [
new VueLoaderPlugin()
]
}
```