Catalog npm
Back to packageRELEASE DETAILS

0.4.0

npm

2webpack2

Turn configuration of webpack 1 to 2

Published13 Nov 2016
Direct dependencies7
Transitive dependenciesNot calculated

README

Current package documentation

2webpack2

Build Status Coverage Status npm

https://webpack.js.org/how-to/upgrade-from-webpack-1

🕳️ Turn configuration of webpack 1 to 2

Installation

npm i 2webpack2 webpack@beta -D

Usage

var to2 = require('2webpack2')

module.exports = to2({
  debug: true,
  module: {
    preLoaders: [
      { test: /\.js$/, loader: 'eslint' }
    ],
    loaders: [
      { test: /\.vue$/, loader: 'vue' },
      { test: /\.css$/, loader: 'style!css?modules' }
    ]
  },
  vue: {
    postcss: [
      require('autoprefixer')
    ]
  }
})

To

{
  module: {
    rules: [
      { test: /\.js$/, loader: 'eslint-loader', enforce: 'pre' },
      { test: /\.vue$/, loader: 'vue-loader' },
      { test: /\.css$/, loader: 'style-loader!css-loader?modules' }
    ]
  },
  plugins: [
    new webpack.LoaderOptionsPlugin({
      options: {
        debug: true,
        vue: {
          postcss: [
            require('autoprefixer')
          ]
        }
      }
    })
  ]
}

Options

  • quiet
  • context

License

MIT

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 8

Native requirements
7 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^1.1.3runtime
object-set
Environment
{
  "local_name": "object-set",
  "alias": false,
  "peer_metadata": null
}
^1.0.1runtime
ava
Environment
{
  "local_name": "ava",
  "alias": false,
  "peer_metadata": null
}
^0.16.0development
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
^8.4.0development
object-has
Environment
{
  "local_name": "object-has",
  "alias": false,
  "peer_metadata": null
}
^1.0.2development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
betadevelopment
xo
Environment
{
  "local_name": "xo",
  "alias": false,
  "peer_metadata": null
}
^0.17.0development
webpack
Environment
{
  "local_name": "webpack",
  "alias": false,
  "peer_metadata": null
}
^2.1.0-beta.24peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "00168b63491d780a0a0b733d1de6a3bb0d3b9d6b",
  "tarball": "https://registry.npmjs.org/2webpack2/-/2webpack2-0.4.0.tgz",
  "integrity": "sha512-SZm3Kd7a3Bd1sJEtKHEHjy82uQ4T3/6N95IMKHPI+PRKIXR4mB0pEVev99Iyf8Pnwi54VdgtUJkCLzQd1lo62A==",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIBZOHbfXYTxDXnGmfWSeJF0A5zV9Z6ldrmda1bdHQbGCAiEA+bhvnCR0rPj0Jf3/cEnuudRbxDebTxwaIt1pS4TK1c0="
    }
  ]
}

Repository

PENDING
qingwei-li/2webpack2

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:20 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:2cfe8f2cf4945c821b6c4a8a9ecce712cb1cf0c9d662ccb62d7ae76c2a9b0b9e

Other collected versions

1.2.16 Feb1.2.09 Jan1.1.09 Jan1.0.29 Jan1.0.19 Jan1.0.09 JanView all collected versions →