diff --git a/gulpfile.js b/gulpfile.js index 473a3048db..47458d7892 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -19,6 +19,14 @@ gulp.task('build-css', function() { .pipe(gulp.dest('resources')); }); +gulp.task('build-themes', function() { + return gulp.src([ + 'public/resources/themes/**/*' + ]) + //.pipe(uglifycss({"uglyComments": true})) + .pipe(gulp.dest('resources/themes')); +}) + gulp.task('images', function() { return gulp.src(['src/components/**/images/*.png', 'src/components/**/images/*.gif']) .pipe(flatten()) @@ -31,6 +39,6 @@ gulp.task('build-exports', function() { }); //Building project with run sequence -gulp.task('prepublish', ['build-css','images']); +gulp.task('build-resources', ['build-css','images', 'build-themes']); \ No newline at end of file diff --git a/package.json b/package.json index 32aa9a9b72..dd1225402a 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "test": "react-scripts test --env=jsdom", "eject": "react-scripts eject", "compile-components": "babel src/components --out-dir components --presets es2015,react,stage-0 --copy-files", - "build-resources": "gulp prepublish", + "build-resources": "gulp build-resources", "build-exports": "gulp build-exports" } }