Skip to content

Commit

Permalink
Update webpack config
Browse files Browse the repository at this point in the history
  • Loading branch information
cayb0rg committed Sep 21, 2023
1 parent b5bd53c commit 18dcbdc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
8 changes: 1 addition & 7 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];

Expand Down

0 comments on commit 18dcbdc

Please sign in to comment.