big-moving.ru/api/soft/ajaxorg/demo/webpack/webpack.config.js

29 lines
569 B
JavaScript
Executable File

"use strict";
module.exports = {
mode: "development",
entry: "./demo.js",
output: {
path: __dirname + "/dist",
filename: "bundle.js"
},
node: {
global: false,
process: false,
Buffer: false,
__filename: "mock",
__dirname: "mock",
setImmediate: false
},
resolveLoader: {
modules: [
"node_modules",
__dirname + "/node_modules",
],
},
devServer: {
contentBase: __dirname,
compress: true,
port: 9000
}
};