# vue-loader-plugin

> a rewrite of VueLoaderPlugin to solve the compatibility with webpack5

Latest version **1.3.0** (published 2019-11-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-loader-plugin
pnpm add vue-loader-plugin
yarn add vue-loader-plugin
bun add vue-loader-plugin
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2019-11-21 |
| First published | 2019-11-12 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Ivan liu |
| Maintainers | ivan_liuqi |
| Keywords | vue-loader, webpack5, ruleset |

## Links

- npm: https://www.npmjs.com/package/vue-loader-plugin
- Repository: https://github.com/18566246732/vue-loader-plugin
- Homepage: https://github.com/18566246732/vue-loader-plugin#readme
- Issues: https://github.com/18566246732/vue-loader-plugin/issues
- npm.io page: https://npm.io/package/vue-loader-plugin

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.3.0 (latest) — 2019-11-21
- 1.2.2 — 2019-11-20
- 1.2.1 — 2019-11-20
- 1.2.0 — 2019-11-19
- 1.1.3 — 2019-11-19
- 1.1.2 — 2019-11-13
- 1.1.1 — 2019-11-13
- 1.1.0 — 2019-11-13
- 1.0.3 — 2019-11-13
- 1.0.2 — 2019-11-13
- 1.0.1 — 2019-11-13
- 1.0.0 — 2019-11-12

## 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()
        ]
    }
    ```

---
_Source: https://npm.io/package/vue-loader-plugin · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
