-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
20 lines (19 loc) · 708 Bytes
/
Copy pathapp.js
File metadata and controls
20 lines (19 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
const htmlStandards = require('reshape-standard')
const cssStandards = require('spike-css-standards')
const jsStandards = require('babel-preset-env')
const dynamicImport = require('babel-plugin-syntax-dynamic-import')
const react = require('babel-preset-react')
const pageId = require('spike-page-id')
module.exports = {
devtool: 'source-map',
matchers: {
html: '*(**/)*.sgr',
css: '*(**/)*.sss'
},
ignore: ['**/layout.sgr', '**/_*', '**/.*', '_cache/**', 'readme.md'],
reshape: htmlStandards({
locals: (ctx) => { return { pageId: pageId(ctx), foo: 'bar' } }
}),
postcss: cssStandards(),
babel: { presets: [[jsStandards, { modules: false }], react], plugins: [dynamicImport] }
}