Current collected state Current
Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
2webpack2
Turn configuration of webpack 1 to 2
https://webpack.js.org/how-to/upgrade-from-webpack-1
🕳️ Turn configuration of webpack 1 to 2
npm i 2webpack2 webpack@beta -D
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')
]
}
}
})
]
}
MIT
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
chalkEnvironment{
"local_name": "chalk",
"alias": false,
"peer_metadata": null
} | ^1.1.3 | runtime |
object-setEnvironment{
"local_name": "object-set",
"alias": false,
"peer_metadata": null
} | ^1.0.1 | runtime |
avaEnvironment{
"local_name": "ava",
"alias": false,
"peer_metadata": null
} | ^0.16.0 | development |
nycEnvironment{
"local_name": "nyc",
"alias": false,
"peer_metadata": null
} | ^8.4.0 | development |
object-hasEnvironment{
"local_name": "object-has",
"alias": false,
"peer_metadata": null
} | ^1.0.2 | development |
webpackEnvironment{
"local_name": "webpack",
"alias": false,
"peer_metadata": null
} | beta | development |
xoEnvironment{
"local_name": "xo",
"alias": false,
"peer_metadata": null
} | ^0.17.0 | development |
Source distribution
{
"shasum": "81e6ae9f3f733be90e6178a4471479a8f96816fc",
"tarball": "https://registry.npmjs.org/2webpack2/-/2webpack2-0.4.1.tgz",
"integrity": "sha512-JTPQzWLlhKt2zTKBzfcBOvr1BVCNcUzqkqLv8/csf8eeC88FIy8PPy0ZLIrDie6epp8ET3a6Io+doZ/w77uMGg==",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEQCIAK0wGYl2J7bJrDSKB7U/oQogD0ovOHmxg726kW0QYwJAiBnThiAQZoAIaNpUMDiRaWGmJLbS60iiy3UNKFEOSM44Q=="
}
]
}Observed since 20 Oct, 19:20 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:2ecfae020e624b44347fdc9041cea25bf0b3f00ae8ab43ae2bf972cd0b369250