Replace path of worker
This commit is contained in:
parent
532fa2da93
commit
62222bc76f
2 changed files with 9 additions and 8 deletions
13
gulpfile.js
13
gulpfile.js
|
@ -58,16 +58,17 @@ gulp.task('build-css', ['sass'], cb => {
|
|||
gulp.task('replace-path', cb => {
|
||||
pump([
|
||||
gulp.src('index.html'),
|
||||
replace('src="js/', 'src="build/js/'),
|
||||
replace('.js', '.min.js'),
|
||||
replace('href="css/', 'href="build/css/'),
|
||||
replace('.css', '.min.css'),
|
||||
gulp.dest('./')
|
||||
replace('css/stylesheet.css', 'build/css/stylesheet.min.css'),
|
||||
replace('js/index.js', 'build/js/index.min.js'),
|
||||
gulp.dest('./'),
|
||||
gulp.src('js/index.js'),
|
||||
replace('js/bundle.js', 'build/js/bundle.min.js'),
|
||||
gulp.dest('js')
|
||||
], cb);
|
||||
});
|
||||
|
||||
// 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
|
||||
gulp.task('watch', () => {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
<!--CSS-->
|
||||
<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"/>
|
||||
|
||||
<!--Fonts-->
|
||||
|
@ -129,7 +129,7 @@
|
|||
</div>
|
||||
|
||||
<!--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>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue