Skip to main content
タグを編集
リンク
nekketsuuu
  • 2.4万
  • 12
  • 53
  • 117
質問の主題と関係のない部分のコードを削除
ソース リンク
hinaloe
  • 4,751
  • 1
  • 13
  • 25
var gulp = require('gulp');              //gulpをインポート
var postcssimport = require('postcss-import');
var postcss = require('gulp-postcss');   //gulp-postcssをインポート
var cssnext = require('postcss-cssnext'); //cssnextをインポート
var csswring = require('csswring');
var babel = require("gulp-babel";);
var browserSync = require('browser-sync').create();

gulp.task('babeltrance', function() {
  gulp.src('dest-after/js/babel/*')
    .pipe(babel())
    .pipe(gulp.dest('dest-after/js'))
});

gulp.task('babelwatch', function() {
  gulp.watch('dest-after/js/babel/*', ['babel'])
});

gulp.task('babel', ['babeltrance', 'babelwatch']);
[17:41:45] Finished 'babel' after 9.32 μs
[17:59:09] Starting 'babeltrance'...
[17:59:09] Finished 'babeltrance' after 3.6 ms
[17:59:09] Starting 'babelwatch'...
[17:59:09] Finished 'babelwatch' after 4.08 ms
[17:59:09] Starting 'babel'...
[17:59:09] Finished 'babel' after 9.72 μs
[17:59:09] Starting 'babeltrance'...
[17:59:09] Finished 'babeltrance' after 7.16 ms
[17:59:09] Starting 'babelwatch'...
[17:59:09] Finished 'babelwatch' after 4.01 ms
var gulp = require('gulp');              //gulpをインポート
var postcssimport = require('postcss-import');
var postcss = require('gulp-postcss');   //gulp-postcssをインポート
var cssnext = require('postcss-cssnext'); //cssnextをインポート
var csswring = require('csswring');
var babel = require("gulp-babel";);
var browserSync = require('browser-sync').create();

gulp.task('babeltrance', function() {
  gulp.src('dest-after/js/babel/*')
    .pipe(babel())
    .pipe(gulp.dest('dest-after/js'))
});

gulp.task('babelwatch', function() {
  gulp.watch('dest-after/js/babel/*', ['babel'])
});

gulp.task('babel', ['babeltrance', 'babelwatch']);
[17:41:45] Finished 'babel' after 9.32 μs
[17:59:09] Starting 'babeltrance'...
[17:59:09] Finished 'babeltrance' after 3.6 ms
[17:59:09] Starting 'babelwatch'...
[17:59:09] Finished 'babelwatch' after 4.08 ms
[17:59:09] Starting 'babel'...
[17:59:09] Finished 'babel' after 9.72 μs
[17:59:09] Starting 'babeltrance'...
[17:59:09] Finished 'babeltrance' after 7.16 ms
[17:59:09] Starting 'babelwatch'...
[17:59:09] Finished 'babelwatch' after 4.01 ms
var gulp = require('gulp');              //gulpをインポート
var babel = require("gulp-babel");

gulp.task('babeltrance', function() {
  gulp.src('dest-after/js/babel/*')
    .pipe(babel())
    .pipe(gulp.dest('dest-after/js'))
});

gulp.task('babelwatch', function() {
  gulp.watch('dest-after/js/babel/*', ['babel'])
});

gulp.task('babel', ['babeltrance']);
[17:59:09] Starting 'babel'...
[17:59:09] Finished 'babel' after 9.72 μs
[17:59:09] Starting 'babeltrance'...
[17:59:09] Finished 'babeltrance' after 7.16 ms
[tag:babel]を追加
リンク
harry0000
  • 2,800
  • 4
  • 18
  • 22
タイトルを変更
リンク
harry0000
  • 2,800
  • 4
  • 18
  • 22
読み込んでいます
質問の主文を上部へ移動
ソース リンク
harry0000
  • 2,800
  • 4
  • 18
  • 22
読み込んでいます
ソース リンク
web
  • 129
  • 1
  • 3
  • 19
読み込んでいます