1.0.0-alpha.6 • Published 10 months ago
ember-cli-styles-preprocessor v1.0.0-alpha.6
ember-cli-styles-preprocessor
Allows for one or many style preprocessors to be used for a given addon or app.
Compatibility
- Ember.js v4.0 or above
- Ember CLI v4.0 or above
- Node.js v16 or above
Installation
ember install ember-cli-styles-preprocessor
Usage
In order to preprocess styles, you must define them manually.
This can be done either in the ember-cli-build.js
file of an app as,
const preprocessors = {
scss: {
broccoliPlugin: require('broccoli-sass-source-maps')(require('sass')),
options: {
sourceMap: true,
sourceMapEmbed: true,
},
},
};
let app = new EmberApp(defaults, {
...
emberCliStylesOptions: {
preprocessors,
},
...
});
or in the index.js of an addon like
const preprocessors = {
scss: {
broccoliPlugin: require('broccoli-sass-source-maps')(require('sass')),
options: {
sourceMap: true,
sourceMapEmbed: true,
},
},
};
module.exports = {
...
options: {
...
emberCliStylesOptions: {
preprocessors,
},
...
},
...
};
Contributing
See the Contributing guide for details.
License
This project is licensed under the MIT License.
1.0.0-alpha.6
10 months ago
1.0.0-alpha.5
2 years ago
1.0.0-alpha.4
2 years ago
1.0.0-alpha.3
2 years ago
1.0.0-alpha.2
2 years ago
1.0.0-alpha.1
2 years ago
0.5.6
4 years ago
0.5.5
5 years ago
0.5.4
5 years ago
0.5.3
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.0
6 years ago
0.2.0
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.8
7 years ago
0.0.7
7 years ago
0.0.6
7 years ago