Skip to content

Commit

Permalink
Remove unused cypress/webpack-dev-server for security fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akhuoa committed Oct 8, 2024
1 parent 88e950f commit 381d947
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 3,180 deletions.
31 changes: 20 additions & 11 deletions cypress/plugins/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
const { startDevServer } = require('@cypress/webpack-dev-server')
const webpackConfig = require('@vue/cli-service/webpack.config.js')
// Plugins to be added in main config
// https://docs.cypress.io/guides/tooling/plugins-guide#Using-a-plugin
//
// Legacy configuration
// https://docs.cypress.io/guides/references/legacy-configuration#Plugins
//
// @cypress/webpack-dev-server is bundled with the Cypress binary and should not need to be installed separately.
// https://github.com/cypress-io/cypress/tree/develop/npm/webpack-dev-server#cypresswebpack-dev-server
//
// const { startDevServer } = require('@cypress/webpack-dev-server')
// const webpackConfig = require('@vue/cli-service/webpack.config.js')

module.exports = (on, config) => {
on('dev-server:start', options =>
startDevServer({
options,
webpackConfig
})
)
// module.exports = (on, config) => {
// on('dev-server:start', options =>
// startDevServer({
// options,
// webpackConfig
// })
// )

return config
}
// return config
// }
Loading

0 comments on commit 381d947

Please sign in to comment.