3.7.0 • Published 21 days ago

@farmfe/js-plugin-vue v3.7.0

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

Vue Js Plugin for Farm

Support compiling Vue SFC in Farm.

Usage

Install @farmfe/js-plugin-vue by your favorite package manager(npm, yarn, pnpm and so on):

npm i @farmfe/js-plugin-vue --save-dev # or pnpm/yarn add @farmfe/js-plugin-vue -D

Configuring the plugin in farm.config.ts:

import { defineFarmConfig } from '@farmfe/core/dist/config';
import farmJsPluginVue from '@farmfe/js-plugin-vue'; //  import the plugin

export default defineFarmConfig({
  compilation: {
    input: {
      index: './index.html'
    },
    output: {
      path: './build'
    }
  },
  plugins: [
    // use the vue plugin.
    farmJsPluginVue({
      // custom options here
    })
  ]
});

Options

hmr

  • Type: boolean
  • Default: false

Determine whether to enable hot module replace

If not set, it is considered to be true in development mode.

ssr

  • Type: boolean
  • Default: false

When set to true, it will disable compilation.lazyCompilation and server.hmr.

3.7.0

21 days ago

3.6.0

2 months ago

3.5.0

2 months ago

3.4.0

4 months ago

3.3.0

4 months ago

1.2.8

11 months ago

1.2.7

11 months ago

1.2.6

11 months ago

2.0.2

7 months ago

2.0.1

8 months ago

2.0.0

10 months ago

3.2.0

6 months ago

3.1.0

6 months ago

3.0.1

6 months ago

3.0.0

7 months ago

1.2.9

10 months ago

1.2.5

11 months ago

1.2.4

11 months ago

1.2.3

11 months ago

1.2.2

12 months ago

1.2.1

12 months ago

1.2.0

12 months ago

1.1.1

12 months ago

1.1.0

12 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago