Socket
Book a DemoInstallSign in
Socket

@achingbrain/gulp-webpack-sourcemaps

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@achingbrain/gulp-webpack-sourcemaps

Wraps Webpack into a streaming interface (and generates sourcemaps)

latest
Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
6
100%
Maintainers
1
Weekly downloads
 
Created
Source

Gulp Webpack Sourcemaps

Wraps Webpack into a streaming interface (and generates sourcemaps).

Usage

npm install gulp-webpack-sourcemaps --save-dev
import gulp        from 'gulp';
import loadPlugins from 'gulp-load-plugins';

const $ = loadPlugins();
const config = {
  // Enable watch mode
  watch: true,
  // Other Webpack config...
};

// We can safely use read: false
return gulp.src('main.less', { cwd: 'resources/assets/styles/', read: false, })
  .pipe($.sourcemaps.init()) // Enable sourcemaps
  .pipe($.webpackSourcemaps(config))
  .pipe($.sourcemaps.write('./', { includeContent: true }))
  .pipe(gulp.dest('public/assets/'));

Keywords

gulpplugin

FAQs

Package last updated on 01 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts