0.0.6 • Published 6 years ago

@metaspa/meta-spa-webpack-plugin v0.0.6

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

Meta SPA Webpack Plugin (WIP)

This plugin helps webpack emit Meta SPA compatible bundle files.

Usage

  • Installation
npm install -D @metaspa/meta-spa-webpack-plugin
  • Add to your webpack config (commonjs style)
  • Be careful this plugin will modified your output target and externals config. The original webpack config about output target and externals will not affect the final build result
const MetaSPAPlugin = require('@metaspa/meta-spa-webpack-plugin').default

module.export = {
    ...
    plugins: [
        new MetaSPAPlugin({
            namespace: 'AppName',
            provide: [
                {module: 'react', symbol: 'React'}
            ]
        })
    ]
}
0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago