Replace path of worker

This commit is contained in:
Boris Kubiak 2018-01-11 00:13:14 +01:00
parent 532fa2da93
commit 62222bc76f
2 changed files with 9 additions and 8 deletions

View file

@ -58,16 +58,17 @@ gulp.task('build-css', ['sass'], cb => {
gulp.task('replace-path', cb => { gulp.task('replace-path', cb => {
pump([ pump([
gulp.src('index.html'), gulp.src('index.html'),
replace('src="js/', 'src="build/js/'), replace('css/stylesheet.css', 'build/css/stylesheet.min.css'),
replace('.js', '.min.js'), replace('js/index.js', 'build/js/index.min.js'),
replace('href="css/', 'href="build/css/'), gulp.dest('./'),
replace('.css', '.min.css'), gulp.src('js/index.js'),
gulp.dest('./') replace('js/bundle.js', 'build/js/bundle.min.js'),
gulp.dest('js')
], cb); ], cb);
}); });
// Build app // Build app
gulp.task('build', ['build-js', 'build-css', 'replace-path']); gulp.task('build', ['replace-path', 'build-js', 'build-css']);
// Watch changes and compile on the fly // Watch changes and compile on the fly
gulp.task('watch', () => { gulp.task('watch', () => {

View file

@ -9,7 +9,7 @@
<!--CSS--> <!--CSS-->
<link rel="stylesheet" <link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.css"/> href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css"/>
<link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="all"/> <link href="css/stylesheet.css" rel="stylesheet" type="text/css" media="all"/>
<!--Fonts--> <!--Fonts-->
@ -129,7 +129,7 @@
</div> </div>
<!--JS--> <!--JS-->
<script src="https://unpkg.com/vue/dist/vue.js"></script> <script src="https://unpkg.com/vue/dist/vue.min.js"></script>
<script src="js/index.js" type="text/javascript"></script> <script src="js/index.js" type="text/javascript"></script>
</body> </body>
</html> </html>