adapt_framework icon indicating copy to clipboard operation
adapt_framework copied to clipboard

Changing screen sizes in `theme.json` not persisted when running `watch`

Open andrewhosgood opened this issue 11 years ago • 3 comments

When you change the breakpoints in the theme's theme.json and run grunt dev, some actions that cause the build will also not load the custom breakpoints and will fall back to the defaults set in src\core\js\models\configModel.js.

The only way to resolve this is to cancel the grunt dev and either re-run it or run grunt build.

andrewhosgood avatar Oct 01 '15 16:10 andrewhosgood

adding create-json-config to the end of the courseJson watch config grunt\config\watch.js seems to fix this issue.

courseJson: {
        files: ['<%= sourcedir %>course/**/*.json'],
        tasks : ['jsonlint', 'check-json', 'copy:courseJson', 'create-json-config']
    },

richsearlesponge avatar Jun 08 '16 08:06 richsearlesponge

Can we add this in?

andrewhosgood avatar Sep 16 '16 11:09 andrewhosgood

yup, i'll +1 if you can pr

oliverfoster avatar Sep 16 '16 11:09 oliverfoster