Skip to content

Commit

Permalink
chore: update webpack-dev-server config/script (garris#1519)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrebb committed Jan 17, 2024
1 parent 141938c commit e008f93
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions compare/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ const path = require('path');
module.exports = {
mode: 'production',
entry: path.join(__dirname, 'src', 'index.js'),
devServer: {
static: {
directory: path.resolve(__dirname, 'output'),
serveIndex: true
}
},
output: {
path: path.resolve(__dirname, 'output'),
filename: 'index_bundle.js'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"unit-test": "mocha --reporter spec --recursive \"test/**/*_spec.js\" && npm run -s success-message || npm run -s fail-message",
"precommit": "lint-staged",
"build-compare": "cp ./node_modules/diverged/src/diverged.js ./compare/output/ && cp ./node_modules/diff/dist/diff.js ./compare/output/ && webpack --config ./compare/webpack.config.js && npm run -s lint",
"dev-compare": "webpack-dev-server --content-base ./compare/output --config ./compare/webpack.config.js",
"dev-compare": "webpack-dev-server --config ./compare/webpack.config.js",
"integration-test": "rm -rf integrationTestDir && mkdir integrationTestDir && cd integrationTestDir && node ../cli/index.js init && node ../cli/index.js reference && node ../cli/index.js test && node -e \"require('../')('test')\" && npm --prefix ../ run -s success-message || npm --prefix ../ run -s fail-message",
"smoke-test": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features && npm --prefix ../../ run -s success-message || npm --prefix ../../ run -s caution-message",
"smoke-test-playwright": "cd test/configs/ && node ../../cli/index.js test --config=backstop_features_pw && npm --prefix ../../ run -s fail-message || npm --prefix ../../ run -s caution-message",
Expand Down

0 comments on commit e008f93

Please sign in to comment.