Use vite to bundle everything
index.css
deleted
100644 → 0
... | ... | @@ -2,19 +2,18 @@ |
"name": "@funkwhale/ui", | ||
"license": "AGPL-3.0", | ||
"scripts": { | ||
"build": "cp preview.html dist/index.html && yarn run build-css", | ||
"build-css": "sass --style=compressed --no-source-map --load-path=node_modules src:dist/css", | ||
"watch": "yarn run build --watch", | ||
"serve": "python3 -m http.server -d dist", | ||
"dev": "vite", | ||
"build": "vite build", | ||
"preview": "vite preview", | ||
"lint": "yarn stylelint $(find src -name '*.scss')" | ||
}, | ||
"devDependencies": { | ||
"bulma": "^0.9.3", | ||
"sass": "^1.49.0", | ||
"stylelint": "^14.3.0", | ||
"stylelint-config-standard-scss": "^3.0.0" | ||
"stylelint-config-standard-scss": "^3.0.0", | ||
"vite": "^2.7.13" | ||
}, | ||
"version": "0.1.2", | ||
"version": "0.1.2-dev1", | ||
"description": "Provides basic component styling for Funkwhale", | ||
"repository": "https://dev.funkwhale.audio/funkwhale/ui.git", | ||
"author": "Funkwhale Collective", | ||
... | ... | @@ -22,6 +21,9 @@ |
"main": "dist/index.css", | ||
"files": [ | ||
"dist/css/*", | ||
"dist/font/*.ttf" | ||
] | ||
"src/**/*" | ||
], | ||
"dependencies": { | ||
"bulma": "^0.9.3" | ||
} | ||
} |
preview.config.js
0 → 100644
vite.config.js
0 → 100644
Please register or sign in to comment