Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: vite-arco can usable with SwitchOmega #71

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions arco-design-pro-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "vite",
"dev": "vite",
"preview": "vite preview",
"build":"vite build",
"build": "vite build",
"eslint": "eslint src/ --ext .ts,.tsx,.js,.jsx --fix --cache",
"stylelint": "stylelint 'src/**/*.less' 'src/**/*.css' --fix --cache",
"pre-commit": "pretty-quick --staged && npm run eslint && npm run stylelint",
Expand Down Expand Up @@ -54,14 +54,16 @@
"husky": "^7.0.2",
"less": "^4.1.2",
"less-loader": "7.3.0",
"pretty-quick": "^3.1.2",
"postcss-less": "4",
"prettier": "^2.4.1",
"pretty-quick": "^3.1.2",
"stylelint": "^14.1.0",
"stylelint-config-prettier": "^9.0.3",
"stylelint-config-standard": "^24.0.0",
"typescript": "^4.5.2",
"vite": "^2.6.14"
"vite": "^2.6.14",
"vite-plugin-host": "^1.0.2"

},
"browserslist": {
"production": [
Expand Down
2 changes: 2 additions & 0 deletions arco-design-pro-vite/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react';
import svgrPlugin from '@arco-plugins/vite-plugin-svgr';
import vitePluginForArco from '@arco-plugins/vite-react';
import setting from './src/settings.json';
import host from 'vite-plugin-host';

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -20,6 +21,7 @@ export default defineConfig({
'arcoblue-6': setting.themeColor,
},
}),
host(),
],
css: {
preprocessorOptions: {
Expand Down