Skip to content

Configure your ceri components in a single place.

Notifications You must be signed in to change notification settings

cerijs/ceri-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ceri-webpack

Configure your ceri components in a single place. Webpack only.

Features

Install

npm install --save-dev ceri-webpack

webpack.config

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)
    ]
  }
}

ceri.config

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",

  // …

}

In your webpack entry file

// with polyfill
require("ceri-webpack").then(function(){
  // everything is ready
})
// without polyfill
require("ceri-webpack")
// everything is ready

License

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

About

Configure your ceri components in a single place.

Resources

Stars

Watchers

Forks

Packages

No packages published