Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

webpack-tool-x

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

webpack-tool-x

webpack build and webpack build result web view

latest
Source
npmnpm
Version
3.1.6
Version published
Maintainers
1
Created
Source

Webpack-tool

Webpack3 (Webpack-tool 3.0.0) And Webpack2 (Webpack-tool 2.0.0) Build Tool, Support Features:

  • development mode, webpack build server, file memory, hot update.

  • publish mode, webpack build file to disk.

  • support webpack build result ui view.

Install

$ npm i webpack-tool --save

Usage

//build/index.js
const WebpackTool = require('webpack-tool');
const weexNativeConfig = require('./weex/native');
const weexWebConfig = require('./weex/web');
const NODE_ENV = process.env.VIEW;

const webpackConfig = [weexNativeConfig, weexWebConfig];

const webpackTool = new WebpackTool();

if (NODE_ENV === 'development') {
  // start webpack build and show build result ui view
  webpackTool.server(webpackConfig);
} else {
  // if you want to show build result ui view for build mode, please set  process.env.BUILD_VIEW=true
  webpackTool.build(webpackConfig);
}

Run

"scripts": {
  "start": "cross-env node build"
 }   
npm start

Start Webpack Debug Server: http://127.0.0.1:8888/debug

UI-VIEW

Keywords

webpack

FAQs

Package last updated on 08 Jul 2018

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