47 lines
1.0 KiB
JavaScript
47 lines
1.0 KiB
JavaScript
|
module.exports = function () {
|
||
|
const build = 'build';
|
||
|
|
||
|
return {
|
||
|
build: build,
|
||
|
src: {
|
||
|
sass: 'scss/**/*.scss',
|
||
|
javascript: ['app.js', 'lib/**/*.js'],
|
||
|
json: 'locale/*.json',
|
||
|
html: ['html/index.html', 'config.json']
|
||
|
},
|
||
|
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
|
||
|
}
|
||
|
}
|
||
|
};
|
||
|
};
|