awwsm-react
Advanced tools
Comparing version
{ | ||
"name": "awwsm-react", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"private": false, | ||
@@ -9,3 +9,3 @@ "main": "dist/index.js", | ||
"scripts": { | ||
"rollup": "rollup -c", | ||
"rollup": "rollup -c && npx tailwindcss -i ./src/index.css -o ./dist/index.css ", | ||
"pub:patch": "npm run rollup && npm version patch && npm publish", | ||
@@ -49,6 +49,10 @@ "pub:minor": "npm run rollup && npm version minor && npm publish", | ||
"postcss": "^8.4.7", | ||
"postcss-import": "^14.0.2", | ||
"postcss-preset-env": "^7.4.2", | ||
"react": "^17.0.2", | ||
"rollup": "^2.69.1", | ||
"rollup-plugin-css-bundle": "^1.0.4", | ||
"rollup-plugin-filesize": "^9.1.2", | ||
"rollup-plugin-postcss": "^4.0.2", | ||
"rollup-plugin-tailwindcss": "^1.0.0", | ||
"sass-loader": "^12.6.0", | ||
@@ -55,0 +59,0 @@ "tailwindcss": "^3.0.23" |
@@ -7,3 +7,3 @@ import babel from "@rollup/plugin-babel"; | ||
import autoprefixer from "autoprefixer"; | ||
import tailwind from "rollup-plugin-tailwindcss"; | ||
import pkg from "./package.json"; | ||
@@ -35,2 +35,8 @@ | ||
filesize(), | ||
tailwind({ | ||
input: "src/index.css", // required | ||
// Tailor the emitted stylesheet to the bundle by removing any unused CSS | ||
// (highly recommended when packaging for distribution). | ||
purge: false, | ||
}), | ||
]; | ||
@@ -37,0 +43,0 @@ |
238860
17.12%11
57.14%4124
60.22%25
19.05%