Skip to content

Commit

Permalink
Fix: Got npm build to use post css instead of tailwind
Browse files Browse the repository at this point in the history
  • Loading branch information
katporks committed Jan 16, 2024
1 parent 041d771 commit eb68dc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 2 additions & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "for file in ../*/static/css/*.css; do npx tailwindcss build $file -o ./dist/css/$(basename $file .css)_processed.css; done && prettier --write .",

"build": "postcss ../hot_osm/static/css/hot_osm.css -o ./dist/css/hot_osm_processed.css && prettier --write .",
"start": "for file in ../*/static/css/*.css; do postcss $file -o ./dist/css/$(basename $file .css)_processed.css; done && prettier --write ."
},
"repository": {
Expand Down
11 changes: 5 additions & 6 deletions frontend/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
module.exports = {
plugins: [
require("postcss-import"),
require("tailwindcss"),
require("autoprefixer"),
],
};
plugins: {
tailwindcss: {},
autoprefixer: {},
}
}

0 comments on commit eb68dc2

Please sign in to comment.