mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-28 10:49:48 -05:00
28 lines
693 B
TypeScript
28 lines
693 B
TypeScript
import getCommonConfig, { HtmlWebpackPlugin } from '@packages/web-config/webpack.config.base'
|
|
import path from 'path'
|
|
import webpack from 'webpack'
|
|
|
|
// @ts-ignore
|
|
const config: webpack.Configuration = {
|
|
...getCommonConfig(),
|
|
entry: {
|
|
components: [path.resolve(__dirname, 'cypress', 'support', 'test-entry.jsx')],
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'dist'),
|
|
filename: '[name].js',
|
|
devtoolModuleFilenameTemplate: 'cypress://[namespace]/[resource-path]',
|
|
},
|
|
}
|
|
|
|
// @ts-ignore
|
|
config.plugins = [
|
|
// @ts-ignore
|
|
...config.plugins,
|
|
new HtmlWebpackPlugin({
|
|
template: path.resolve(__dirname, 'cypress/support/test-entry.html'),
|
|
}),
|
|
]
|
|
|
|
export default config
|