build: Migrate to vite
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
parent
42e05f2cf5
commit
8ebf80cfd0
1
.gitignore
vendored
1
.gitignore
vendored
@ -9,3 +9,4 @@
|
|||||||
|
|
||||||
/node_modules/
|
/node_modules/
|
||||||
/js/
|
/js/
|
||||||
|
/css/
|
||||||
|
6377
package-lock.json
generated
6377
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
12
package.json
12
package.json
@ -7,12 +7,13 @@
|
|||||||
"npm": "^10.0.0"
|
"npm": "^10.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_ENV=production webpack --config webpack.js --progress",
|
"build": "vite build",
|
||||||
"dev": "NODE_ENV=development webpack --config webpack.js --progress",
|
"dev": "vite --mode development build",
|
||||||
"watch": "NODE_ENV=development webpack --config webpack.js --progress --watch",
|
"watch": "vite --mode development build --watch",
|
||||||
"lint": "eslint src",
|
"lint": "eslint src",
|
||||||
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css"
|
"stylelint": "stylelint src/**/*.vue src/**/*.scss src/**/*.css"
|
||||||
},
|
},
|
||||||
|
"type": "module",
|
||||||
"browserslist": [
|
"browserslist": [
|
||||||
"extends @nextcloud/browserslist-config"
|
"extends @nextcloud/browserslist-config"
|
||||||
],
|
],
|
||||||
@ -24,8 +25,7 @@
|
|||||||
"@nextcloud/browserslist-config": "^3.0.1",
|
"@nextcloud/browserslist-config": "^3.0.1",
|
||||||
"@nextcloud/eslint-config": "^8.4.1",
|
"@nextcloud/eslint-config": "^8.4.1",
|
||||||
"@nextcloud/stylelint-config": "^3.0.1",
|
"@nextcloud/stylelint-config": "^3.0.1",
|
||||||
"@nextcloud/webpack-vue-config": "^6.0.1",
|
"@nextcloud/vite-config": "^1.4.2",
|
||||||
"eslint-webpack-plugin": "^4.2.0",
|
"vite": "^5.4.6"
|
||||||
"stylelint-webpack-plugin": "^5.0.1"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
13
vite.config.js
Normal file
13
vite.config.js
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
import { createAppConfig } from "@nextcloud/vite-config";
|
||||||
|
import { join, resolve } from "path";
|
||||||
|
|
||||||
|
export default createAppConfig(
|
||||||
|
{
|
||||||
|
main: resolve(join("src", "main.js")),
|
||||||
|
},
|
||||||
|
{
|
||||||
|
createEmptyCSSEntryPoints: true,
|
||||||
|
extractLicenseInformation: true,
|
||||||
|
thirdPartyLicense: false,
|
||||||
|
}
|
||||||
|
);
|
Loading…
Reference in New Issue
Block a user