Compare commits
2 Commits
ab04fdf76a
...
7ce3c94135
Author | SHA1 | Date |
---|---|---|
b1ek | 7ce3c94135 | |
b1ek | d6053c411f |
|
@ -0,0 +1 @@
|
||||||
|
node_modules
|
10
package.json
10
package.json
|
@ -3,5 +3,13 @@
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"author": "blek",
|
"author": "blek",
|
||||||
"license": "MIT"
|
"license": "MIT",
|
||||||
|
"devDependencies": {
|
||||||
|
"webpack": "^5.80.0",
|
||||||
|
"webpack-cli": "^5.0.1",
|
||||||
|
"webpack-dev-server": "^4.13.3"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "webpack serve --mode development"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head></head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div id="is-a-dev-root"></div>
|
||||||
|
<script src="bundle.js"></script>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1 @@
|
||||||
|
alert('hi webpack')
|
|
@ -0,0 +1,15 @@
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
entry: path.resolve(__dirname, './src/index.js'),
|
||||||
|
output: {
|
||||||
|
path: path.resolve(__dirname, './public'),
|
||||||
|
filename: 'bundle.js'
|
||||||
|
},
|
||||||
|
devServer: {
|
||||||
|
static: path.resolve(__dirname, './public'),
|
||||||
|
port: process.env.APP_PORT || 8080,
|
||||||
|
host: '0.0.0.0',
|
||||||
|
allowedHosts: 'all'
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue