-
Notifications
You must be signed in to change notification settings - Fork 4
/
app.js
46 lines (44 loc) · 1.03 KB
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const cssStandards = require('spike-css-standards');
const latest = require('babel-preset-env');
const reshape = require('reshape');
const include = require('reshape-include');
const layouts = require('reshape-layouts');
const content = require('reshape-content');
const expressions = require('reshape-expressions');
const minify = require('reshape-minify');
const listings = require('./data/listings.json');
module.exports = {
devtool: 'source-map',
ignore: [
'views/layout.html',
'views/partials/*',
'data/*',
'.github/*',
'Readme.md',
'LICENSE',
's3_website.yml',
'**/_*',
'**/.*',
'*.log',
],
reshape: {
locals: {
defaultTitle: 'JuniorJobs - Entry level jobs in UK tech/design',
jobs: listings
},
plugins: [
layouts(),
content(),
include(),
expressions(),
minify({
minifyJs: false // UglifyJS doesn't support ES6 :/
})
]
},
postcss: cssStandards({
parser: false,
minify: true
}),
babel: { presets: [latest] }
};