GitHub - MetaSPA/Meta-SPA-Webpack-Plugin: webpack plugin that helps export MetaSPA format JSONP · GitHub
Skip to content

About

webpack plugin that helps export MetaSPA format JSONP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

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

About

webpack plugin that helps export MetaSPA format JSONP

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages