tweaking build
parent
a72ca7587f
commit
1e76faaa2b
|
@ -17,6 +17,11 @@ gulp.task('js', function () {
|
|||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('loading', function () {
|
||||
return gulp.src('src/js/loading.js')
|
||||
.pipe(gulp.dest('dist'));
|
||||
});
|
||||
|
||||
gulp.task('index', function () {
|
||||
return gulp.src('src/*.html')
|
||||
.pipe(useref())
|
||||
|
@ -61,7 +66,7 @@ gulp.task('canvg', function(){
|
|||
.pipe(gulp.dest('dist/js/lib'));
|
||||
});
|
||||
|
||||
gulp.task('default',
|
||||
gulp.task('build',
|
||||
gulp.series(
|
||||
'css',
|
||||
'js',
|
||||
|
|
|
@ -36,7 +36,7 @@ Install dev dependencies:
|
|||
|
||||
Then you can build into `dist` by running:
|
||||
|
||||
`gulp`
|
||||
`gulp build`
|
||||
|
||||
Deploy `dist` to your static file server of choice.
|
||||
|
||||
|
|
|
@ -757,8 +757,9 @@
|
|||
<div class="tools_flyout" id="tools_shapelib">
|
||||
<div id="shape_buttons"></div>
|
||||
</div>
|
||||
|
||||
<!-- build:js loading.js -->
|
||||
<script type="text/javascript" src="js/loading.js"></script>
|
||||
<!-- endbuild -->
|
||||
<!-- build:js all.js -->
|
||||
<script type="text/javascript" src="js/lib/jquery-3.5.1.min.js"></script>
|
||||
<script type="text/javascript" src="js/lib/pathseg.js"></script>
|
||||
|
@ -807,15 +808,11 @@
|
|||
<script type="text/javascript" src="js/lib/jpicker.min.js"></script>
|
||||
<script type="text/javascript" src="js/lib/mousewheel.js"></script>
|
||||
<script type="text/javascript" src="js/eyedropper.js"></script>
|
||||
<!--<script type="text/javascript" src="js/grid.js"></script>-->
|
||||
<script type="text/javascript" src="js/lib/requestanimationframe.js"></script>
|
||||
<script type="text/javascript" src="js/lib/taphold.js"></script>
|
||||
<script type="text/javascript" src="js/lib/filesaver.js"></script>
|
||||
<script type="text/javascript" src="js/paste.js"></script>
|
||||
<script type="text/javascript" src="js/start.js"></script>
|
||||
|
||||
|
||||
<!-- endbuild -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Loading…
Reference in New Issue