Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Update Asset Pipeline Configuration #84

Merged
merged 7 commits into from
Apr 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
xcuserdata/
.swiftpm

Resources/*.css
!Resources/*.min.css

# NodeJS
## Logs
logs
Expand Down
26 changes: 0 additions & 26 deletions .node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
"not dead"
],
"scripts": {
"build": "postcss ../Assets/css/all.css -o ../Resources/all.min.css --config ./postcss.config.js -u cssnano",
"watch": "postcss -w ../Assets/**/*.css --dir ../Resources --config ./postcss.config.js "
"watch": "postcss -w ../Assets/**/*.css -o ../Resources/all.min.css --config ./postcss.config.js"
},
"dependencies": {
"cssnano": "^4.1.10",
"postcss-cli": "^7.1.0",
"postcss-nested": "^4.2.1",
"postcss-preset-env": "^6.7.0"
}
}
4 changes: 3 additions & 1 deletion .node/postcss.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
module.exports = {
plugins: [
require("postcss-nested"),
require("postcss-preset-env")({
stage: 0,
features: {
"matches-pseudo-class": false,
},
}),
require("cssnano")({
preset: "default",
}),
],
};
9 changes: 1 addition & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,8 @@ $ npm run watch
```

When you're happy with the results,
run the `build` script to generate production-ready assets.

```terminal
$ npm run build
```

Finally,
commit any changes to the source files in `Assets`
as well as the generated files in `Resources`.
as well as the generated files in `Resources`.

```terminal
$ git add Assets Resources
Expand Down
Loading