UNPKG

vite-plugin-public-path

Version:

Vite's equivalent of `__webpack_public_path__` in Webpack. Works for `index.html` and modern/legacy build.

60 lines (59 loc) 1.54 kB
{ "name": "vite-plugin-public-path", "version": "1.1.0", "description": "Vite's equivalent of `__webpack_public_path__` in Webpack. Works for `index.html` and modern/legacy build.", "main": "dist/index.js", "exports": { "import": "./exports/import.mjs", "require": "./exports/require.cjs" }, "repository": "https://github.com/Menci/vite-plugin-public-path.git", "author": "Menci <huanghaorui301@gmail.com>", "license": "MIT", "keywords": [ "vite", "plugin", "dynamic", "publicpath", "__webpack_public_path__" ], "scripts": { "build": "tsc", "test": "jest --forceExit --verbose --coverage", "format": "prettier --write '**/*.{mjs,cjs,js,ts}'", "pretest": "playwright install firefox" }, "dependencies": { "@rollup/pluginutils": "^4.2.0", "@swc/core": "^1.2.145", "node-html-parser": "^5.2.0", "serialize-javascript": "^6.0.0" }, "devDependencies": { "@types/express": "^4.17.13", "@types/jest": "^27.4.1", "@types/serialize-javascript": "^5.0.2", "@vitejs/plugin-legacy": "^1.7.1", "cz-conventional-changelog": "^3.3.0", "express": "^4.17.3", "jest": "^27.5.1", "jest-extended": "^2.0.0", "playwright": "^1.19.2", "prettier": "^2.5.1", "ts-jest": "^27.1.3", "typescript": "^4.5.5", "vite": "^2.8.4" }, "peerDependencies": { "vite": ">=2.8" }, "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "files": [ "/dist", "/exports" ] }