From 18dcbdc5497c360b672af28bd02150cb1d24dc9d Mon Sep 17 00:00:00 2001 From: Cay Henning Date: Thu, 21 Sep 2023 16:40:51 -0400 Subject: [PATCH] Update webpack config --- package.json | 8 ++++---- webpack.config.js | 8 +------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 12125d9..ee4a13a 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,16 @@ "cleanName": "normal-distribution-calculator" }, "dependencies": { - "materia-widget-development-kit": "^2.5.2" + "materia-widget-development-kit": "../../MWDK4" }, "devDependencies": { "babel-jest": "^23.6.0", "jest": "^23.6.0" }, "scripts": { - "start": "webpack-dev-server", - "build": "webpack -p", - "build-dev": "webpack", + "start": "mwdk-start", + "build": "mwdk-build-prod", + "build-dev": "mwdk-build-dev", "test": "TZ='America/New_York' jest --verbose", "test-ci": "TZ='America/New_York' CI=true jest --ci --useStderr --coverage" }, diff --git a/webpack.config.js b/webpack.config.js index 869e193..df70bc3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -4,17 +4,11 @@ const rules = widgetWebpack.getDefaultRules() const entries = widgetWebpack.getDefaultEntries(); // remove some default entries -delete entries['creator.js']; -delete entries['creator.css']; -delete entries['player.js']; - -// add our player controller -entries['player.js'] = [path.join(__dirname, 'src', 'player.js')]; +delete entries['creator']; let customRules = [ rules.copyImages, rules.loadHTMLAndReplaceMateriaScripts, - rules.loadAndPrefixCSS, rules.loadAndPrefixSASS, ];