-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.js
37 lines (35 loc) · 1.43 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
const htmlStandards = require('reshape-standard')
const cssStandards = require('spike-css-standards')
const jsStandards = require('spike-js-standards')
const pageId = require('spike-page-id')
const path = require('path')
const sugarml = require('sugarml')
const sugarss = require('sugarss')
const env = process.env.SPIKE_ENV
module.exports = {
devtool: 'source-map',
vendor: 'assets/vendor/**',
matchers: { html: '*(**/)*.sgr', css: '*(**/)*.sss' },
ignore: ['**/layout.sgr', '**/_*', '**/.*', 'readme.md', 'yarn.lock', 'package-lock.json', 'LICENSE.md', '**/_*/**/*'],
dumpDirs: ['assets', 'views', 'www', 'favicons'],
reshape: htmlStandards({
parser: sugarml,
locals: ctx => ({ pageId: pageId(ctx) }),
minify: env === 'production'
}),
postcss: cssStandards({
parser: sugarss,
minify: env === 'production',
warnForDuplicates: env !== 'production'
}),
babel: jsStandards(),
resolve: {
alias: {
'animation.gsap': path.resolve('node_modules', 'scrollmagic/scrollmagic/uncompressed/plugins/animation.gsap.js'),
'ScrollMagic': path.resolve('node_modules', 'scrollmagic/scrollmagic/uncompressed/ScrollMagic.js'),
'ScrollToPlugin': path.resolve('node_modules', 'gsap/src/uncompressed/plugins/ScrollToPlugin.js'),
'TimelineMax': path.resolve('node_modules', 'gsap/src/uncompressed/TimelineMax.js'),
'TweenMax': path.resolve('node_modules', 'gsap/src/uncompressed/TweenMax.js')
}
}
}