cssbundling-rails 1.1.0 → 1.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 +6 -3
- data/lib/cssbundling/version.rb +1 -1
- data/lib/install/bootstrap/install.rb +1 -1
- data/lib/install/bulma/install.rb +1 -1
- data/lib/install/dev +1 -1
- data/lib/install/sass/install.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99329a3089f29c127a662c2b9ee910f0d432a450dc8f8581a97e0876cbbafdff
|
4
|
+
data.tar.gz: d5bc8749354e3094058d2cb0c8151200f15b7a455e2913ed43f1202e1fb40771
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d66dcdf7c882660552852c38b6bb5066d9b53844ae68c7d937a0886cdfe7e29a70360d68d57ead20f21b4bbf6c0f92a09386c98259e901ceb300f5ac47706c0a
|
7
|
+
data.tar.gz: 7f025dd959ffc7a8453198c4537e795d82f933f74c9ed0cdb82bd44b1a3efba22e7ebd8701ce163c1d6501cef231899e484a0cdd64a40de059da47ee82480278
|
data/README.md
CHANGED
@@ -21,9 +21,8 @@ You can configure your bundler options in the `build:css` script in `package.jso
|
|
21
21
|
|
22
22
|
You must already have node and yarn installed on your system. You will also need npx version 7.1.0 or later. Then:
|
23
23
|
|
24
|
-
1.
|
25
|
-
2. Run `./bin/
|
26
|
-
3. Run `./bin/rails css:install:[tailwind|bootstrap|bulma|postcss|sass]`
|
24
|
+
1. Run `./bin/bundle add cssbundling-rails`
|
25
|
+
2. Run `./bin/rails css:install:[tailwind|bootstrap|bulma|postcss|sass]`
|
27
26
|
|
28
27
|
Or, in Rails 7+, you can preconfigure your new application to use a specific bundler with `rails new myapp --css [tailwind|bootstrap|bulma|postcss|sass]`.
|
29
28
|
|
@@ -42,6 +41,10 @@ If you want to use `@import` statements as part of your Tailwind application.js
|
|
42
41
|
|
43
42
|
Some CSS packages use new CSS features that are not supported by the default SassC rails integration that previous versions of Rails used. If you hit such an incompatibility, it'll likely be in the form of a `SassC::SyntaxError` when running `assets:precompile`. The fix is to `bundle remove sass-rails` (or `sassc-rails`, if you were using that).
|
44
43
|
|
44
|
+
### Why do I get `application.css not in asset pipeline` in production?
|
45
|
+
|
46
|
+
A common issue is that your repository does not contain the output directory used by the build commands. You must have `app/assets/builds` available. Add the directory with a `.gitkeep` file, and you'll ensure it's available in production.
|
47
|
+
|
45
48
|
## License
|
46
49
|
|
47
50
|
CSS Bundling for Rails is released under the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/cssbundling/version.rb
CHANGED
@@ -17,7 +17,7 @@ else
|
|
17
17
|
end
|
18
18
|
|
19
19
|
say "Add build:css script"
|
20
|
-
build_script = "sass ./app/assets/stylesheets/application.bootstrap.scss
|
20
|
+
build_script = "sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules"
|
21
21
|
|
22
22
|
if (`npx -v`.to_f < 7.1 rescue "Missing")
|
23
23
|
say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :red
|
@@ -4,7 +4,7 @@ copy_file "#{__dir__}/application.bulma.scss",
|
|
4
4
|
run "yarn add sass bulma"
|
5
5
|
|
6
6
|
say "Add build:css script"
|
7
|
-
build_script = "sass ./app/assets/stylesheets/application.bulma.scss
|
7
|
+
build_script = "sass ./app/assets/stylesheets/application.bulma.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules"
|
8
8
|
|
9
9
|
if (`npx -v`.to_f < 7.1 rescue "Missing")
|
10
10
|
say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :red
|
data/lib/install/dev
CHANGED
data/lib/install/sass/install.rb
CHANGED
@@ -3,7 +3,7 @@ copy_file "#{__dir__}/application.sass.scss", "app/assets/stylesheets/applicatio
|
|
3
3
|
run "yarn add sass"
|
4
4
|
|
5
5
|
say "Add build:css script"
|
6
|
-
build_script = "sass ./app/assets/stylesheets/application.sass.scss
|
6
|
+
build_script = "sass ./app/assets/stylesheets/application.sass.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules"
|
7
7
|
|
8
8
|
if (`npx -v`.to_f < 7.1 rescue "Missing")
|
9
9
|
say %(Add "scripts": { "build:css": "#{build_script}" } to your package.json), :red
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cssbundling-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Heinemeier Hansson
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2022-
|
12
|
+
date: 2022-06-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.
|
78
|
+
rubygems_version: 3.3.14
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Bundle and process CSS with Tailwind, Bootstrap, PostCSS, Sass in Rails via
|