Authored by ccbikai

更新 gulp 脚本

@@ -25,7 +25,7 @@ const env = { @@ -25,7 +25,7 @@ const env = {
25 25
26 const config = require('../package.json'); 26 const config = require('../package.json');
27 const ftpConfig = { 27 const ftpConfig = {
28 - host: '218.94.75.50', 28 + host: '218.94.75.58',
29 user: 'php', 29 user: 'php',
30 pass: 'yoho9646' 30 pass: 'yoho9646'
31 }; 31 };
@@ -125,7 +125,7 @@ const postcssPlugin = (et) => { @@ -125,7 +125,7 @@ const postcssPlugin = (et) => {
125 }; 125 };
126 126
127 // default 127 // default
128 -gulp.task('default', ['postcss-dev', 'postcss-dev-h5', 'postcss-watch', 'webpack-dev-server']); 128 +gulp.task('default', ['postcss-dev', 'postcss-watch', 'webpack-dev-server']);
129 129
130 // ge 130 // ge
131 gulp.task('ge', ['postcss', 'webpack']); 131 gulp.task('ge', ['postcss', 'webpack']);
@@ -148,19 +148,9 @@ gulp.task('postcss-dev', () => { @@ -148,19 +148,9 @@ gulp.task('postcss-dev', () => {
148 .pipe(gulp.dest('css/')); 148 .pipe(gulp.dest('css/'));
149 }); 149 });
150 150
151 -// postcss compile in dev-h5  
152 -gulp.task('postcss-dev-h5', () => {  
153 - return gulp.src('m-scss/m-index.css')  
154 - .pipe(sourcemaps.init())  
155 - .pipe(postcss(postcssPlugin(env.dev)))  
156 - .pipe(sourcemaps.write('.'))  
157 - .pipe(gulp.dest('css/'));  
158 -});  
159 -  
160 // postcss file watch 151 // postcss file watch
161 gulp.task('postcss-watch', () => { 152 gulp.task('postcss-watch', () => {
162 gulp.watch('scss/**/*.css', ['postcss-dev']); 153 gulp.watch('scss/**/*.css', ['postcss-dev']);
163 - gulp.watch('m-scss/**/*.css', ['postcss-dev-h5']);  
164 }); 154 });
165 155
166 // copy assets 156 // copy assets