1 | # @shopify/slate-config
|
2 |
|
3 | Generates configurations for Slate packages by applying values from `slate.config.js` to override default values.
|
4 |
|
5 | An example config file from `@shopify/slate-babel`:
|
6 |
|
7 | ```js
|
8 | const slateConfig = require('@shopify/slate-config');
|
9 |
|
10 | module.exports = slateConfig.generate({
|
11 | items: [
|
12 | {
|
13 | id: 'babelLoaderEnable',
|
14 | default: true,
|
15 | description: 'Enable/disable Babel for theme scripts',
|
16 | type: 'boolean',
|
17 | },
|
18 | ],
|
19 | });
|
20 | ```
|
21 |
|
22 | `slate.config.js` could override the default value of `babelLoaderEnable` by declaring the following:
|
23 |
|
24 | ```js
|
25 | module.exports = {
|
26 | babelLoaderEnable: false,
|
27 | };
|
28 | ```
|