ionic-gulp-webpack-build

Gulp task for Ionic projects to transpile and bundle JavaScript/TypeScript sources with webpack

ionic-gulp-webpack-build has been renamed to ionic-gulp-webpack.
Last updated 4 years ago by tlancina .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install ionic-gulp-webpack-build 
SYNC missed versions from official npm registry.

Webpack Build Task

Use webpack to transpile and bundle your source files.

You will need to provide a webpack.config.js file in your project root. For more information on webpack configuration, see https://webpack.github.io/docs/configuration.html.

API

webpackBuild([options])

Returns a Promise that resolves when the build is finished.

Available options:

  • watch (boolean) Whether to watch for changes or not. Default: false.
  • watchOptions (Object) Watch options for webpack. Default: null.
  • config (Object) Configuration for webpack. Default: uses webpack.config.js from your project root.
  • statsOptions (Object) Stats options for webpack. Default:
{
  'colors': true,
  'modules': false,
  'chunks': false,
  'exclude': ['node_modules']
}

Example

var webpackBuild = require('ionic-gulp-webpack-build');

gulp.task('build', webpackBuild);

gulp.task('watch', function(){
  return webpackBuild({
    watch: true,
    statsOptions: {
      'colors': false,
      'errorDetails': true
    }  
  })
});

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

1 Versions

  • 1.0.0 [deprecated]           ...           4 years ago
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 1
Dependencies (3)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |