New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

webpackrc

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpackrc

on the fly webpack config generator

latest
Source
npmnpm
Version
1.4.0
Version published
Maintainers
1
Created
Source

webpackrc

On the fly webpack config generator

  • provides preconfigured common webpack loaders & dev server with hot reloading
  • extensible through .webpackrc & plugin system
  • auto install dependencies

Simplest steps to serve typecript app

npm i -g webpackrc
webpackrc index.ts

(Go to localhost:3000)

Preconfigured webpack loaders:

  • default: json, css, imagesGifPng (png & gif formats), imagesJpg (jpg format), fonts, svg, babel or typescript based on entry file extension (js/jsx vs ts/tsx)
  • additional loaders: less, sass, eslint, tslint

To customize resulting webpack config, create .webpackrc file, like this:

{
  "env": {
    "development": {
      "plugins": [
        "tslint",
        "sass"
      ]
    }
  }
}

Plugin can also be path to file which exports function, like function(config: WebpackConfig) {...}, config is webpack config object you can mutate, see src/plugins.js.

Debugging

To see webpackrc logs, run with:

DEBUG=webpackrc webpackrc src/index.tsx 

FAQs

Package last updated on 06 Mar 2016

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