Skip to content

Commit c323769

Browse files
Merge pull request #6 from DefactoSoftware/release-v0.0.3
Release v0.0.3
2 parents 5a5ccde + 40c4904 commit c323769

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

CHANGELOG.MD

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
# v0.0.3
2+
3+
## Changed
4+
- CSS modules are now longer compiled into the code by default. You now have to
5+
pass `embed_stylesheet: true` to the `__using__` macro to compile the CSS modules in the view.
6+
17
# v0.0.2
28

39
## Changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
[![Hex.pm](https://img.shields.io/hexpm/v/ex_css_modules.svg)](https://hex.pm/packages/ex_css_modules)
66
[![CircleCI](https://circleci.com/gh/DefactoSoftware/ex_css_modules/tree/master.svg?style=shield)](https://circleci.com/gh/DefactoSoftware/ex_css_modules)
77

8-
ExCSSModules currently requires the CSS Modules definitions JSON file to be compiled next to the CSS file itself and the files to be compiled before the Elixir application is build.
8+
ExCSSModules defines two ways to read the stylesheet: embedded and read.
9+
10+
If you said the `embed_stylesheet` option to the `use` macro the stylesheet definitions JSON have to be compiled before the application is compiled. This flag is used for production to optimize read times.
11+
12+
If you don't set the flag or set it to false, the stylesheet definition JSON files are read live from the server which creates a lot of IO for each request.
913

1014
## Installation
1115
Install from [Hex.pm](https://hex.pm/packages/ex_css_modules):
1216

1317
```ex
1418
def deps do
15-
[{:ex_css_modules, "~> 0.0.1"}]
19+
[{:ex_css_modules, "~> 0.0.3"}]
1620
end
1721
```
1822

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule ExCSSModules.Mixfile do
22
use Mix.Project
33

4-
@version "0.0.2"
4+
@version "0.0.3"
55

66
def project do
77
[app: :ex_css_modules,

0 commit comments

Comments
 (0)