-
Notifications
You must be signed in to change notification settings - Fork 20
Package Options
Nathan Reid edited this page Apr 19, 2016
·
18 revisions
Package Options are set by creating a cssModules
section in package.json. Here is a sample package.json:
{
"name": "my-app-name",
"version": "1.0.0",
"dependencies": {
"meteor-node-stubs": "^0.2.3"
},
"cssModules": {
"option1": "setting",
"option2": true,
"option3": [ "a", "b" ]
}
}
Here is a list of the supported settings:
Property | Default Value | Available Values | Description |
---|---|---|---|
extensions | ['mss', 'm.css'] |
An array of file extensions | Only the extensions included in this setting will be processed by the plugin. |
enableSassCompilation | ['scss', 'sass'] |
An array of file extensions | Only the extensions included in this setting will undergo Sass compilation. The extensions must also be included in the extensions property. |
specificArchitecture | 'web' |
Any valid archMatching string, or false
|
Allows filtering the plugin to run on a specific architecture. By default the plugin runs on 'web' (client-side) only; to enable server-side processing as well, set the value to false . To enable server-side and disable client-side processing, set the value to 'os' . |