mirror of https://github.com/webpack/webpack.git
18 lines
308 B
JavaScript
18 lines
308 B
JavaScript
const path = require("path");
|
|
|
|
/** @type import('webpack').Configuration */
|
|
module.exports = {
|
|
mode: "development",
|
|
entry: "./index.js",
|
|
output: {
|
|
path: path.resolve(__dirname, "dist"),
|
|
filename: "bundle.js"
|
|
},
|
|
devServer: {
|
|
port: 8000,
|
|
headers: {
|
|
"Access-Control-Allow-Origin": "*"
|
|
}
|
|
}
|
|
};
|