webpack-genius
**For chinese developers:** you'd better add taobao mirror before everything start. Or you may fail to install. ```bash yarn config set registry http://registry.npm.taobao.org yarn config set sass_binary_site http://npm.taobao.org/mirrors/node-sass ```
Last updated a month ago by fwh1990 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install webpack-genius 
SYNC missed versions from official npm registry.

Installation

For chinese developers: you'd better add taobao mirror before everything start. Or you may fail to install.

yarn config set registry http://registry.npm.taobao.org
yarn config set sass_binary_site http://npm.taobao.org/mirrors/node-sass

For all developers:

yarn add webpack-genius --dev

Features

  • Transform all kinds of extensions
  • Hot-Reload for your project (Not refresh)
  • High performance

Demo

React Hooks

Usage

Create file webpack.config.ts. Not .js

import webpackGenius from 'webpack-genius';

export default webpackGenius(3000);

Add cli to you package.json

{
    "scripts": {
        "start": "webpack-genius start",
        "build": "webpack-genius build --env production"
    }
}

Change Entry

Genius will search entry file automatically from index, Index, src/index, src/Index with one of this extensions .js, .ts, .jsx, .tsx

Or you can override entry file:

import webpackGenius from 'webpack-genius';

export default webpackGenius(3000, (genius) => {
    genius.entry('./src/entries/index.tsx');
});

Change Host

The default host is 0.0.0.0, you may keep this IP address usually.

import webpackGenius from 'webpack-genius';

export default webpackGenius(3000, (genius) => {
    genius
        .entry('...')
        .devServer((server) => {
            server.host = 'YOUR HOST OR IP';
        });
});

Point index.html to your own template

Genius will search entry file automatically from index, public/index, src/index, src/public/index, assets/index, src/assets/index with one of this extensions .html .htm

Or you can override html file:

import webpackGenius from 'webpack-genius';

export default webpackGenius(3000, (genius) => {
    genius
        .entry('...')
        .pluginHtml((plugin) => {
            plugin.setTemplate('./src/entries/index.html');
        });
});

Disable css-modules

I recommend everybody use css-modules feature, but you can disable it if you don't like:

import webpackGenius from 'webpack-genius';

export default webpackGenius(3000, (genius) => {
    genius
        .disableCssModules();
});

Current Tags

  • 4.12.1                                ...           latest (a month ago)
  • 4.11.6-beta.0                                ...           next (a month ago)

175 Versions

  • 4.12.1                                ...           a month ago
  • 4.12.0                                ...           a month ago
  • 4.11.6                                ...           a month ago
  • 4.11.6-beta.0                                ...           a month ago
  • 4.11.5                                ...           a month ago
  • 4.11.5-beta.2                                ...           a month ago
  • 4.11.5-beta.1                                ...           a month ago
  • 4.11.5-beta.0                                ...           a month ago
  • 4.11.4                                ...           2 months ago
  • 4.10.8                                ...           2 months ago
  • 4.11.4-beta.5                                ...           2 months ago
  • 4.11.4-beta.4                                ...           2 months ago
  • 4.11.4-beta.3                                ...           2 months ago
  • 4.11.4-beta.2                                ...           2 months ago
  • 4.11.4-beta.1                                ...           2 months ago
  • 4.11.4-beta.0                                ...           2 months ago
  • 4.9.1-beta.11                                ...           2 months ago
  • 4.8.1-beta.0                                ...           2 months ago
  • 4.9.0-beta.0                                ...           2 months ago
  • 4.7.7-beta.0                                ...           2 months ago
  • 4.10.8-beta.5                                ...           2 months ago
  • 4.10.8-beta.4                                ...           2 months ago
  • 4.10.8-beta.3                                ...           2 months ago
  • 4.10.8-beta.2                                ...           2 months ago
  • 4.10.8-beta.1                                ...           2 months ago
  • 4.10.8-beta.0                                ...           2 months ago
  • 4.11.3                                ...           2 months ago
  • 4.11.0                                ...           2 months ago
  • 4.11.0-beta.3                                ...           2 months ago
  • 4.11.0-beta.2                                ...           2 months ago
  • 4.11.0-beta.1                                ...           2 months ago
  • 4.11.0-beta.0                                ...           2 months ago
  • 4.10.7                                ...           2 months ago
  • 4.10.6                                ...           2 months ago
  • 4.10.5                                ...           2 months ago
  • 4.10.5-beta.1                                ...           2 months ago
  • 4.10.5-beta.0                                ...           2 months ago
  • 4.10.4                                ...           2 months ago
  • 4.10.4-beta.1                                ...           2 months ago
  • 4.10.4-beta.0                                ...           2 months ago
  • 4.10.2                                ...           2 months ago
  • 4.10.3                                ...           2 months ago
  • 4.10.1                                ...           2 months ago
  • 4.10.1-beta.2                                ...           2 months ago
  • 4.10.1-beta.1                                ...           2 months ago
  • 4.10.1-beta.0                                ...           2 months ago
  • 4.10.0-beta.3                                ...           2 months ago
  • 4.10.0-beta.2                                ...           2 months ago
  • 4.10.0-beta.1                                ...           2 months ago
  • 4.10.0-beta.0                                ...           2 months ago
  • 4.9.0                                ...           2 months ago
  • 4.8.0                                ...           2 months ago
  • 4.7.6                                ...           2 months ago
  • 4.7.6-beta.8                                ...           2 months ago
  • 4.7.6-beta.7                                ...           2 months ago
  • 4.7.6-beta.6                                ...           2 months ago
  • 4.7.6-beta.5                                ...           2 months ago
  • 4.7.6-beta.4                                ...           2 months ago
  • 4.7.6-beta.3                                ...           2 months ago
  • 4.7.6-beta.2                                ...           2 months ago
  • 4.7.6-beta.1                                ...           2 months ago
  • 4.7.6-beta.0                                ...           2 months ago
  • 4.7.4                                ...           2 months ago
  • 4.7.4-beta.1                                ...           2 months ago
  • 4.7.4-beta.0                                ...           2 months ago
  • 4.7.3                                ...           2 months ago
  • 4.7.2                                ...           2 months ago
  • 4.7.1                                ...           2 months ago
  • 4.7.1-beta.0                                ...           2 months ago
  • 4.7.0                                ...           2 months ago
  • 4.6.12-beta.5                                ...           2 months ago
  • 4.6.12-beta.3                                ...           2 months ago
  • 4.6.12-beta.2                                ...           2 months ago
  • 4.6.12-beta.1                                ...           2 months ago
  • 4.6.12-beta.0                                ...           2 months ago
  • 4.6.11                                ...           3 months ago
  • 4.6.11-beta.5                                ...           3 months ago
  • 4.6.11-beta.4                                ...           3 months ago
  • 4.6.11-beta.3                                ...           3 months ago
  • 4.6.11-beta.2                                ...           3 months ago
  • 4.6.11-beta.1                                ...           3 months ago
  • 4.6.11-beta.0                                ...           3 months ago
  • 4.6.10                                ...           3 months ago
  • 4.6.9                                ...           3 months ago
  • 4.6.8                                ...           3 months ago
  • 4.6.7                                ...           3 months ago
  • 4.6.6                                ...           3 months ago
  • 4.6.5                                ...           3 months ago
  • 4.6.4                                ...           3 months ago
  • 4.6.3                                ...           3 months ago
  • 4.6.2                                ...           3 months ago
  • 4.6.1                                ...           3 months ago
  • 4.6.0                                ...           3 months ago
  • 4.6.0-beta.15                                ...           3 months ago
  • 4.6.0-beta.14                                ...           3 months ago
  • 4.6.0-beta.13                                ...           3 months ago
  • 4.6.0-beta.12                                ...           3 months ago
  • 4.6.0-beta.11                                ...           3 months ago
  • 4.6.0-beta.10                                ...           3 months ago
  • 4.5.7-beta.4                                ...           3 months ago
  • 4.5.7-beta.3                                ...           3 months ago
  • 4.5.7-beta.2                                ...           3 months ago
  • 4.5.7-beta.1                                ...           3 months ago
  • 4.5.7-beta.0                                ...           3 months ago
  • 4.5.6                                ...           3 months ago
  • 4.5.5                                ...           3 months ago
  • 4.6.0-beta.4                                ...           3 months ago
  • 4.6.0-beta.3                                ...           3 months ago
  • 4.6.0-beta.2                                ...           3 months ago
  • 4.5.4                                ...           3 months ago
  • 4.6.0-beta.1                                ...           3 months ago
  • 4.6.0-beta.0                                ...           3 months ago
  • 4.5.3                                ...           3 months ago
  • 4.5.2-beta.2                                ...           3 months ago
  • 4.5.2-beta.1                                ...           3 months ago
  • 4.5.2-beta.0                                ...           3 months ago
  • 4.5.1                                ...           3 months ago
  • 4.5.0                                ...           3 months ago
  • 4.5.0-beta.1                                ...           3 months ago
  • 4.5.0-beta.0                                ...           3 months ago
  • 4.4.3-beta.3                                ...           3 months ago
  • 4.4.3-beta.2                                ...           3 months ago
  • 4.4.3-beta.1                                ...           3 months ago
  • 4.4.3-beta.0                                ...           3 months ago
  • 4.4.2                                ...           3 months ago
  • 4.4.0-beta.3                                ...           3 months ago
  • 4.4.0-beta.2                                ...           3 months ago
  • 4.4.0-beta.1                                ...           3 months ago
  • 4.4.0-beta.0                                ...           3 months ago
  • 4.3.2                                ...           3 months ago
  • 4.3.2-beta.1                                ...           3 months ago
  • 4.3.2-beta.0                                ...           3 months ago
  • 4.3.1                                ...           3 months ago
  • 4.3.1-beta.4                                ...           3 months ago
  • 4.3.1-beta.3                                ...           3 months ago
  • 4.3.1-beta.2                                ...           3 months ago
  • 4.3.1-beta.1                                ...           3 months ago
  • 4.3.1-beta.0                                ...           3 months ago
  • 4.3.0-beta.2                                ...           3 months ago
  • 4.3.0                                ...           3 months ago
  • 4.3.0-beta.1                                ...           3 months ago
  • 4.3.0-beta.0                                ...           3 months ago
  • 4.2.1                                ...           3 months ago
  • 4.2.0                                ...           3 months ago
  • 4.2.0-beta.0                                ...           3 months ago
  • 4.1.4                                ...           3 months ago
  • 4.1.4-beta.3                                ...           3 months ago
  • 4.1.4-beta.2                                ...           3 months ago
  • 4.1.4-beta.1                                ...           3 months ago
  • 4.1.4-beta.0                                ...           3 months ago
  • 4.1.3                                ...           3 months ago
  • 4.1.2                                ...           3 months ago
  • 4.1.1                                ...           3 months ago
  • 4.1.1-beta.0                                ...           3 months ago
  • 4.1.0                                ...           3 months ago
  • 4.0.15                                ...           3 months ago
  • 4.0.15-beta.1                                ...           3 months ago
  • 4.0.15-beta.0                                ...           3 months ago
  • 4.0.14                                ...           3 months ago
  • 4.0.14-beta.1                                ...           3 months ago
  • 4.0.14-beta.0                                ...           3 months ago
  • 4.0.13                                ...           3 months ago
  • 4.0.12                                ...           3 months ago
  • 4.0.11                                ...           3 months ago
  • 4.0.10                                ...           3 months ago
  • 4.0.9                                ...           3 months ago
  • 4.0.8                                ...           3 months ago
  • 4.0.7                                ...           3 months ago
  • 4.0.6                                ...           3 months ago
  • 4.0.5                                ...           3 months ago
  • 4.0.4                                ...           3 months ago
  • 4.0.3                                ...           3 months ago
  • 4.0.2                                ...           3 months ago
  • 4.0.1                                ...           3 months ago
  • 4.0.0                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 179
This Month 179
Last Day 0
Last Week 0
Last Month 113
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |