Skip to content

Have the MWDK generate ids for question like object #13

@iturgeon

Description

@iturgeon

The server creates ids for questions and answers if an object looks like a question, but the MWDK doesn't.

This will cause issues when testing scoring and playing if the player relies on those IDs.

The workaround right now is to add this to the individual widget's webpack config and create a second demo.json

//override the demo with a copy that assigns ids to each question for dev purposes
let configOptions = {}
if (process.env.npm_lifecycle_script == 'webpack-dev-server') {
	configOptions.demoPath = 'devmateria_demo.json'
}
module.exports = require('materia-widget-development-kit/webpack-widget').getLegacyWidgetBuildConfig(configOptions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions