Commit 4aceff2f authored by Vincent's avatar Vincent

Set up a minimal webpack project

parents
node_modules
\ No newline at end of file
{
"name": "wdio-webpack-dev-server-service-minimal-repro",
"version": "0.1.0",
"private": true,
"dependencies": {
},
"scripts": {
"start": "webpack-serve --config project/webpack.config.js"
},
"devDependencies": {
"webpack": "^4.16.4",
"webpack-serve": "^2.0.2"
}
}
\ No newline at end of file
<!doctype html>
<html>
<head>
<title>Minimal reproducible wdio-webpack-dev-server-service setup</title>
</head>
<body>
<h1>Minimal reproducible wdio-webpack-dev-server-service setup</h1>
<script src="dist/bundle.js"></script>
</body>
</html>
console.log('This is a bundled Webpack project!');
\ No newline at end of file
const path = require('path');
module.exports = {
entry: path.resolve(__dirname, 'index.js'),
mode: 'development',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'bundle.js'
}
};
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment