Configure your ceri components in a single place. Webpack only.
- configuration based by using read-conf
npm install --save-dev ceri-webpack
module.exports = async function() {
return {
plugins: [
// available options
// name (String) Default:"ceri.config" Name of the configuration file
// config (Object) Overwrites configuration file
await require("ceri-webpack")(options)
]
}
}
Read by read-conf, from ./
or ./build/
by default.
module.exports = {
// …
// Ceri plugins to load
plugins: [], // Array
// Name of the custom elements polyfill to load
// types: [String, Boolean]
polyfill: "document-register-element",
// …
}
// with polyfill
require("ceri-webpack").then(function(){
// everything is ready
})
// without polyfill
require("ceri-webpack")
// everything is ready
Copyright (c) 2017 Paul Pflugradt Licensed under the MIT license.