3.9.0 • Published 12 months ago
@farmfe/js-plugin-vue v3.9.0
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.9.0
12 months ago
3.8.0
1 year ago
3.7.0
1 year ago
3.6.0
1 year ago
3.5.0
1 year ago
3.4.0
1 year ago
3.3.0
1 year ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
2.0.2
2 years ago
2.0.1
2 years ago
2.0.0
2 years ago
3.2.0
2 years ago
3.1.0
2 years ago
3.0.1
2 years ago
3.0.0
2 years ago
1.2.9
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
0.2.1
2 years ago
0.2.0
2 years ago
0.1.1
2 years ago
0.1.0
2 years ago