UNPKG

631 BMarkdownView Raw
1# @shopify/slate-config
2
3Generates configurations for Slate packages by applying values from `slate.config.js` to override default values.
4
5An example config file from `@shopify/slate-babel`:
6
7```js
8const slateConfig = require('@shopify/slate-config');
9
10module.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
25module.exports = {
26 babelLoaderEnable: false,
27};
28```