removed file inline, added seperate js file

This commit is contained in:
Synox 2016-07-07 22:11:12 +02:00
parent eba778a070
commit f44a9baa8d

View file

@ -5,7 +5,6 @@ import WebpackDevServer from 'webpack-dev-server';
import karma from 'karma';
import ip from 'ip';
import webpackConfig from './webpack.config';
import fileInline from 'gulp-file-inline';
let paths = {
build: path.join(__dirname, 'target/build')
@ -54,26 +53,16 @@ gulp.task('webpack-prod', [], (done) => {
});
let inlineScript = function () {
return gulp
.src(path.join('target', 'build', 'index.html'))
.pipe(fileInline({
css: {
minify: false
},
js: {
minify: false
}
}))
.pipe(gulp.dest('dist'))
};
gulp.task('build', ['test-phantomjs', 'webpack-prod'], (done) => {
return inlineScript();
return gulp
.src(path.join('target', 'build', '*'))
.pipe(gulp.dest('dist'))();
});
gulp.task('build-skipTests', ['webpack-prod'], (done) => {
return inlineScript();
return gulp
.src(path.join('target', 'build', '*'))
.pipe(gulp.dest('dist'))();
});