cssbundling-rails 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/cssbundling/version.rb +1 -1
- data/lib/install/tailwind/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d009b77062edc08fa7e499ebe915ca706a3c8245e1437f78e5f5fa7bb2829426
|
4
|
+
data.tar.gz: 7936295528cee5b579b2a0ff6c2b928dd3626bfbfd4e056f03819ff71fa3dd46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5651b29b1fc938881fcc0dfa05db4bebb8333fab87febfdb5036dd5915eff9d2e24dfa5cbfc30062e76930598c018f77fe67af2d349f078b833da38657ead4
|
7
|
+
data.tar.gz: 8646a47e848a271ccf001768e1bdd2b58076096b6dabe29031a4a1464d448b37db4803dd06eef98268710e6a86ce7d6ab088d520f11559c087a8664157bd48a6
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# CSS Bundling for Rails
|
2
2
|
|
3
|
-
Use [Tailwind CSS](https://tailwindcss.com), [PostCSS](https://postcss.org), or [Dart Sass](https://sass-lang.com/) to bundle and process your
|
3
|
+
Use [Tailwind CSS](https://tailwindcss.com), [PostCSS](https://postcss.org), or [Dart Sass](https://sass-lang.com/) to bundle and process your CSS, then deliver it via the asset pipeline in Rails. This gem provides installers to get you going with the bundler of your choice in a new Rails application, and a convention to use `app/assets/builds` to hold your bundled output as artifacts that are not checked into source control (the installer adds this directory to `.gitignore` by default).
|
4
4
|
|
5
5
|
You develop using this approach by running the bundler in watch mode in a terminal with `yarn build:css --watch` (and your Rails server in another, if you're not using something like [puma-dev](https://github.com/puma/puma-dev)). Whenever the bundler detects changes to any of the stylesheet files in your project, it'll bundle `app/assets/stylesheets/application.[bundler].css` into `app/assets/builds/application.css`. This build output takes over from the regular asset pipeline default file. So you continue to refer to the build output in your layout using the standard asset pipeline approach with `<%= stylesheet_include_tag "application" %>`.
|
6
6
|
|
data/lib/cssbundling/version.rb
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
"name": "app",
|
3
3
|
"private": "true",
|
4
4
|
"scripts": {
|
5
|
-
"build:css": "tailwindcss -i ./app/assets/stylesheets/application.
|
5
|
+
"build:css": "tailwindcss -i ./app/assets/stylesheets/application.tailwind.css -o ./app/assets/builds/application.css"
|
6
6
|
}
|
7
7
|
}
|