gulpfile - no longer needs to change cwd
it was fixed upstream: https://github.com/tkellen/node-liftoff/issues/16 Just `npm install -g gulp` to update.master
parent
9974ab482b
commit
f13e23bd16
17
gulpfile.js
17
gulpfile.js
|
@ -1,22 +1,22 @@
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* Web Starter Kit
|
* Web Starter Kit
|
||||||
* Copyright 2014 Google Inc. All rights reserved.
|
* Copyright 2014 Google Inc. All rights reserved.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
* You may obtain a copy of the License at
|
* You may obtain a copy of the License at
|
||||||
*
|
*
|
||||||
* http://www.apache.org/licenses/LICENSE-2.0
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
*
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License
|
* limitations under the License
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
'use strict';
|
'use strict';
|
||||||
var gulp = require('gulp');
|
var gulp = require('gulp');
|
||||||
var $ = require('gulp-load-plugins')();
|
var $ = require('gulp-load-plugins')();
|
||||||
|
@ -28,9 +28,6 @@ var reload = browserSync.reload;
|
||||||
// public URL for your website
|
// public URL for your website
|
||||||
var PUBLIC_URL = 'https://example.com';
|
var PUBLIC_URL = 'https://example.com';
|
||||||
|
|
||||||
// enable use of relative paths even though gulp is run in sub-directories
|
|
||||||
process.chdir(__dirname);
|
|
||||||
|
|
||||||
gulp.task('styles', function () {
|
gulp.task('styles', function () {
|
||||||
return gulp.src('app/styles/sass/styles.scss')
|
return gulp.src('app/styles/sass/styles.scss')
|
||||||
.pipe($.rubySass({style: 'expanded', precision: 10}))
|
.pipe($.rubySass({style: 'expanded', precision: 10}))
|
||||||
|
|
Loading…
Reference in New Issue