0.1.1 • Published 5 years ago

leajs-webpack v0.1.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

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.