snapy-webpack

0.1.0 • Public • Published

snapy-webpack

Plugin of snapy.

Take a snapshot of a webpack output.

// ./test/snapy.config.js
module.exports = {
  plugins: [
    "snapy-webpack",
    // ...
  ]
  // ...
}
{test} = require("snapy")

test((snap) => {
  // simple
  snap({webpack: "./test/_entry.js"})

  // full config
  snap({webpack: {
    entry: "./test/_entry.js"
    mode: "production" // mode defaults to development
    module: {
      rules: [
        // webpack loader config
      ]
    }
    plugins: [
      // webpack plugins
    ]
    }
  })
  
  // load a config
  snap({webpack: require("./webpack.config.js")})
})

License

Copyright (c) 2018 Paul Pflugradt Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i snapy-webpack

Weekly Downloads

0

Version

0.1.0

License

MIT

Unpacked Size

5.49 kB

Total Files

3

Last publish

Collaborators

  • paulpflug