Skip to content

Failed to use DllReferencePlugin #678

@serut

Description

@serut

Hello,

I would like to use the webpack Dll feature, which divides by 10 the duration of the compilatio of the storybook but with no success.
I tried to setup an heal.html, but the content of that file is inserted into the iframe and not the main body, so it doesn't help.

My webpack.config config file:

  plugins: [
    new webpack.DllReferencePlugin({
      // The path to the manifest file which maps between
      // modules included in a bundle and the internal IDs
      // within that bundle
      manifest: require(`${__dirname}/build/core-manifest.json`),
      context: __dirname
    }),
  ]

The main script inside the html file is :
<script src="static/manager.bundle.js"></script>
And it crashes because the DLL of my app is not included before that script.

Someone succeed to use storybook and Dll ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions