0.1.0 • Published 6 years ago

snapy-webpack v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

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.