gulp-webpack

Sourcemap generated from Gulp, not working as expected

限于喜欢 提交于 2019-12-12 14:23:11
问题 So my app is running off a concatenated admin.bundle.js file. I'm using webpack to manage the modules, and then using gulp-webpack to import my webpack config, then run the sourcemap code: gulp.task('webpack', function() { return gulp.src('entry.js') .pipe(webpack( require('./webpack.config.js') )) .pipe(sourcemaps.init()) .pipe(sourcemaps.write('./')) .pipe(gulp.dest('app/assets/js')); }); My Webpack config var webpack = require('webpack'); module.exports = { entry: "./entry.js", output: {

Webpackstream issues with babel-loader

扶醉桌前 提交于 2019-12-12 02:42:56
问题 I have a setup running for fine for Mac, but the same setup seems to fail on Windows. The babel-loader doesn't seem to do anything. Here is my current setup: Error code description package.json "devDependencies": { "babel-core": "^5.8.23", "babel-loader": "^5.3.2", "babel-preset-es2015": "^6.16.0", "del": "^2.0.2", "gulp": "github:gulpjs/gulp#4.0", "gulp-bytediff": "^1.0.0", "gulp-cached": "^1.1.0", "gulp-changed": "^1.1.1", "gulp-cli": "github:gulpjs/gulp-cli", "gulp-connect": "^2.2.0",