-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.js
20 lines (19 loc) · 679 Bytes
/
app.js
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 autoprefixer = require('autoprefixer')
const jsStandards = require('spike-js-standards')
const pageId = require('spike-page-id')
const env = process.env.NODE_ENV
module.exports = {
devtool: 'source-map',
matchers: { html: '*(**/)*.sgr', css: '*(**/)*.scss' },
ignore: ['**/layout.sgr', '**/_*', '**/.*', 'readme.md', 'yarn.lock'],
module: {
rules: [{ test: /\.scss/, use: [{ loader: 'sass-loader' }] }]
},
reshape: htmlStandards({
locals: (ctx) => { return { pageId: pageId(ctx), foo: 'bar' } },
minify: env === 'production'
}),
postcss: { plugins: [autoprefixer()] },
babel: jsStandards()
}