Skip to content

Cannot create and run "production" builds #173

Description

@sdivakarrajesh

image

  • I'm using the CustomCharacterDemo.js. The apps seems fine and work when we start using npm run start-babylon.
  • But when i build it with NODE_ENV=production, the class names become, for example, in this case filename_classname.
  • i see that the classnames are used throughout whenever a feature is installed, example: Host.AnimationFeature and Host.TextToSpeechFeature.
  • When building using "production" the class names are messed up and "AnimationFeature" becomes "AnimationFeature_AnimationFeature" and Host.AnimationFeature.addLayer("something") throws an error
  • This is how my webpack config optimizations block looks like
  optimization: {
    minimize: true,
    minimizer: [
      new TerserPlugin({
        terserOptions: {
          keep_classnames: true,
        },
      }),
    ],
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions