2017-03-22 22:13:37 +00:00
|
|
|
module.exports = function () {
|
|
|
|
const build = 'build';
|
|
|
|
|
|
|
|
return {
|
|
|
|
build: build,
|
2017-03-27 19:34:02 +00:00
|
|
|
faviconData: 'assets/faviconData.json',
|
2017-03-22 22:13:37 +00:00
|
|
|
src: {
|
|
|
|
sass: 'scss/**/*.scss',
|
|
|
|
javascript: ['app.js', 'lib/**/*.js'],
|
|
|
|
json: 'locale/*.json',
|
2017-03-29 22:21:41 +00:00
|
|
|
html: ['html/index.html', 'config.json', 'config.default.json']
|
2017-03-22 22:13:37 +00:00
|
|
|
},
|
|
|
|
clean: [build + '/*.map', build + '/vendor', build + '/main.css'],
|
|
|
|
autoprefixer: ['> 1% in DE'],
|
|
|
|
browsersync: {
|
|
|
|
server: {
|
|
|
|
baseDir: build
|
|
|
|
},
|
|
|
|
files: [
|
|
|
|
build + '/*.css',
|
|
|
|
build + '/*.js',
|
|
|
|
build + '/*.html',
|
|
|
|
build + '/locale/*.json'
|
|
|
|
]
|
|
|
|
},
|
|
|
|
requireJs: {
|
|
|
|
prod: {
|
|
|
|
baseUrl: 'lib',
|
|
|
|
name: '../node_modules/almond/almond',
|
|
|
|
mainConfigFile: 'app.js',
|
|
|
|
include: '../app',
|
|
|
|
out: 'app.js',
|
|
|
|
build: true,
|
|
|
|
preserveLicenseComments: true
|
|
|
|
},
|
|
|
|
dev: {
|
|
|
|
baseUrl: 'lib',
|
|
|
|
name: '../node_modules/almond/almond',
|
|
|
|
mainConfigFile: 'app.js',
|
|
|
|
include: '../app',
|
|
|
|
optimize: 'none',
|
|
|
|
out: 'app.js',
|
|
|
|
build: false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|