gulp-query-webpack-buble
Webpack with a single line of code using Bublé
Last updated 2 years ago by nurieff .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-query-webpack-buble 
SYNC missed versions from official npm registry.

gulp-query-webpack-buble

Webpack plugin for gulp-query

Uses bubel-loader, style-loader, css-loader and sass-loader

Webpack with a single line of code using Bublé

P.S. Bublé is the blazing fast, batteries-included ES2015 compiler

Supports:

  • ES2017, React + modules compilation
  • Tree-shaking, new in webpack 2 (removes unused library code)
  • Import .scss and .css in js
npm install gulp-query gulp-query-webpack-buble

Example

Paste the code into your gulpfile.js and configure it

let build = require('gulp-query')
  , webpack = require('gulp-query-webpack-buble')
;
build((query) => {
    query.plugins([webpack])
      .webpack('src/js/app.js','js/','app')
    
      // Rename
      .webpack('src/js/admin.js','js/undercover.js')
    
      // Config as object
      .webpack({
        from: 'src/js/main.js',
        to: 'js/',
        name: 'main'
      })
    ;
});

And feel the freedom

gulp
gulp --production // For production
gulp watch // Watching change
gulp webpack // Only for webpack
gulp webpack:app // Only for app.js
gulp webpack:admin webpack:main watch // Watching change only for admin.js and main.js
...

Options

.webpack({
    name: "task_name", // For gulp webpack:task_name 
    from: "src/js/app.js",
    to: "js/", // set filename "js/concat.js" -- for rename
    source_map: true,
    source_map_type: 'inline',
    full: false // if set true is without compress in prod
})

Current Tags

  • 1.1.1                                ...           latest (2 years ago)

4 Versions

  • 1.1.1                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 2
Dependencies (13)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |