Skip to content

lea-js/leajs-webpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leajs-webpack

Plugin of leajs.

Webpack development and hot reload middleware.

leajs.config

module.exports = {

  plugins: [
    "leajs-webpack"
  ]

  // Configuration object
  // type: Object
  webpack: {

    // Name of the webpack configuration file
    config: "webpack.config", // String

    // Folders to search for webpack configuration file
    folder: ["./build","./"], // [Array, String]

    // Options to pass to hot middleware client. Set False to deactivate hot module reloading.
    hot: {}, // [Object, Boolean]

    // Namespace to use in Url e.g. /webpack
    // Default: Read from webpack.config 'output.publicPath'
    mount: null, // String

    // Output folder of webpack
    // Default: Read from webpack.config 'output.path'
    output: null, // String

    // No compiling, only serve the compiled bundle as a folder
    // Default: inProduction
    static: null, // Boolean

  // …

}

License

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

About

webpack development and hot reload middleware

Resources

Stars

Watchers

Forks

Packages

No packages published