@revoloo/cypress6
Version:
Cypress.io end to end testing tool
25 lines (23 loc) • 602 B
JavaScript
/** @type import("webpack").Configuration */
const webpackConfig = {
resolve: {
extensions: ['.js', '.ts', '.jsx', '.tsx'],
},
mode: 'development',
devtool: false,
output: {
publicPath: '/',
chunkFilename: '[name].bundle.js',
},
// TODO: update with valid configuration for your components
module: {
rules: [
{
test: /\.(js|jsx|mjs|ts|tsx)$/,
loader: 'babel-loader',
options: { cacheDirectory: path.resolve(__dirname, '.babel-cache') },
},
]
},
}
on('dev-server:start', (options) => startDevServer({ options, webpackConfig }))