gulp-sourcemaps

Gulp-Sourcemaps, SyntaxError: Unexpected token >

六月ゝ 毕业季﹏ 提交于 2019-12-07 08:22:23
问题 Gulp / npm noobie here. I'm trying to use gulp-sourcemaps, and for some reason, it crashes on var sourcemaps = require('sourcemaps') .(It crash only when this line's in the file) gulpfile: var gulp = require('gulp'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('generateApp', function () { return gulp.src([some paths...]) .pipe(sourcemaps.init()) .pipe(concat('app.min.js')) .pipe(uglify()) .pipe(sourcemaps

Path to source map is wrong

情到浓时终转凉″ 提交于 2019-12-06 08:35:23
问题 I use the packages gulp-less and gulp-sourcemaps . My less file is located under Styles/main.less , but the generated source map points to source/main.less (where source/ seems to be a prefix). How to fix this, so the source map correctly points to source/Styles/main.less ? My gulp task is rather simple: var gulp = require('gulp'), less = require('gulp-less'), gulpif = require('gulp-if'), sourcemaps = require('gulp-sourcemaps'); var paths = { styles: [ 'Styles/**/*.less', '!**/*.min.css' ],

Gulp SASS Sourcemap sources are incorrect

我的梦境 提交于 2019-12-06 05:07:41
问题 I am struggling to get my SASS sourcemaps to work correctly. The problem seems to be the "sources" attribute within the sourcemap and how my SASS files are nested. I have a Gulp task that compiles SASS to CSS. Here is an example of that var paths = { styles: { src: './Stylesheets/SCSS/', files: './Stylesheets/SCSS/**/*.scss', dest: './Stylesheets/CSS/' } } gulp.task('compile-sass', function (){ return gulp.src(paths.styles.files) .pipe(sourcemaps.init()) .pipe(sass({ outputStyle: 'compressed'

Gulp sourcemaps with TypeScript and Babel

廉价感情. 提交于 2019-12-05 22:49:47
问题 I am currently writing a side project where I can learn more about TypeScript and ES6 (using babel). I wanted to use ES6 with my TypeScript, so I settled on the following workflow. Typescript (ES6) -> Babel (ES6) -> ES5 Now I am using Gulp to automate all of this, and I am having a hard time getting the sourcemaps to generate properly. I should mention that this style was suggested to me by a user on /r/typescript so I am not even sure if it is possible. Anyways here is my current gulp task

Gulp-Sourcemaps, SyntaxError: Unexpected token >

独自空忆成欢 提交于 2019-12-05 14:50:32
Gulp / npm noobie here. I'm trying to use gulp-sourcemaps, and for some reason, it crashes on var sourcemaps = require('sourcemaps') .(It crash only when this line's in the file) gulpfile: var gulp = require('gulp'); var uglify = require('gulp-uglify'); var concat = require('gulp-concat'); var sourcemaps = require('gulp-sourcemaps'); gulp.task('generateApp', function () { return gulp.src([some paths...]) .pipe(sourcemaps.init()) .pipe(concat('app.min.js')) .pipe(uglify()) .pipe(sourcemaps.write()) .pipe(gulp.dest(path...)); }); Error : C:\Projets\node_modules\strip-bom\index.js:2 module

Gulp SASS Sourcemap sources are incorrect

旧时模样 提交于 2019-12-04 11:07:21
I am struggling to get my SASS sourcemaps to work correctly. The problem seems to be the "sources" attribute within the sourcemap and how my SASS files are nested. I have a Gulp task that compiles SASS to CSS. Here is an example of that var paths = { styles: { src: './Stylesheets/SCSS/', files: './Stylesheets/SCSS/**/*.scss', dest: './Stylesheets/CSS/' } } gulp.task('compile-sass', function (){ return gulp.src(paths.styles.files) .pipe(sourcemaps.init()) .pipe(sass({ outputStyle: 'compressed', includePaths : [paths.styles.src] })) .pipe(prefix({ browsers: ['last 2 Chrome versions'], cascade:

Gulp sourcemaps with TypeScript and Babel

 ̄綄美尐妖づ 提交于 2019-12-04 05:44:34
I am currently writing a side project where I can learn more about TypeScript and ES6 (using babel). I wanted to use ES6 with my TypeScript, so I settled on the following workflow. Typescript (ES6) -> Babel (ES6) -> ES5 Now I am using Gulp to automate all of this, and I am having a hard time getting the sourcemaps to generate properly. I should mention that this style was suggested to me by a user on /r/typescript so I am not even sure if it is possible. Anyways here is my current gulp task var server = $.typescript.createProject('src/server/tsconfig.json'); gulp.task('build', ['vet'],

gulp-sourcemaps: Cannot find module './src/init'

我的未来我决定 提交于 2019-12-03 14:59:13
问题 I get an error while installing React-native, I have tried to search for an answer, but I can not find one. When running "react-native init meet" I get this error: This will walk you through creating a new React Native project in /Users/alfred/React/meet Installing react-native package from npm... Setting up new React Native app in /Users/alfred/React/meet module.js:338 throw err; ^ Error: Cannot find module './src/init' at Function.Module._resolveFilename (module.js:336:15) at Function

Visual Studio Code debugging chrome, Breakpoints wont hit

孤街浪徒 提交于 2019-12-03 13:08:23
I have a Angular2/typescript app I am developing in VSCode. I use Gulp to build the typescript files and gulp-sourcemap to create map files. Attaching/launching chrome works well after some tinkering with the chrome debug extension for VSCode, but I cannot get the breakpoints to hit. I run the website with "dnx web", but I don't think that should matter. My folder structure is like this: project/wwwroot/index.html project/wwwroot/app/myfile.js project/wwwroot/app/myfile.js.map project/scripts/myfile.ts My launch.json looks like this: { "version": "0.2.0", "configurations": [ { "name": "Launch"

gulp-sourcemaps: Cannot find module './src/init'

左心房为你撑大大i 提交于 2019-12-03 05:37:13
I get an error while installing React-native, I have tried to search for an answer, but I can not find one. When running "react-native init meet" I get this error: This will walk you through creating a new React Native project in /Users/alfred/React/meet Installing react-native package from npm... Setting up new React Native app in /Users/alfred/React/meet module.js:338 throw err; ^ Error: Cannot find module './src/init' at Function.Module._resolveFilename (module.js:336:15) at Function.Module._load (module.js:286:25) at Module.require (module.js:365:17) at require (module.js:384:17) at Object