vite-plugin-easy-player-pro
v0.1.5
Published
easy-player-pro plugin for Vite
Maintainers
Readme
⚡ vite-plugin-easy-player-pro
Easily set up a [easy-player-pro] project in Vite.
Install
npm i easy-player vite-plugin-easy-player-pro vite -D
# yarn add easy-player vite-plugin-easy-player-pro -DUsage
add this plugin to vite.config.js
import { defineConfig } from 'vite';
import easyPlayerPro from 'vite-plugin-easy-player-pro';
export default defineConfig({
plugins: [easyPlayerPro()]
});add dev command to package.json
"scripts": {
"dev": "vite",
"build": "vite build"
}run:
yarn dev
Options
easyPlayerBuildRootPath
- Type :
string - Default :
node_modules/easy-player-pro/lib
EasyPlayer.js default root path
import { defineConfig } from 'vite';
import easyPlayerPro from 'vite-plugin-easy-player-pro';
export default defineConfig({
plugins: [
easyPlayerPro({
easyPlayerBuildRootPath: 'src/libs/EasyPlayerPro'
})
]
});easyPlayerBuildDir
- Type :
string - Default :
build
The default directory name under EasyPlayer.js storage.
import { defineConfig } from 'vite';
import easyPlayerPro from 'vite-plugin-easy-player-pro';
export default defineConfig({
plugins: [
easyPlayerPro({
easyPlayerBuildRootPath: './'
})
]
});License
MIT
