generated from ShadowVR/AI_botter
40 lines
887 B
JavaScript
40 lines
887 B
JavaScript
|
require("babel-polyfill");
|
||
|
const webpack = require('webpack')
|
||
|
const path = require('path')
|
||
|
|
||
|
module.exports = {
|
||
|
mode: 'production',
|
||
|
target: "web",
|
||
|
context: path.join(__dirname, './digest-fetch-src.js'),
|
||
|
entry: [
|
||
|
"babel-polyfill",
|
||
|
path.join(__dirname, './digest-fetch-src.js')
|
||
|
],
|
||
|
output: {
|
||
|
uniqueName: 'digest-fetch.js',
|
||
|
path: path.join(__dirname, '.'),
|
||
|
filename: 'digest-fetch.js',
|
||
|
globalObject: 'this'
|
||
|
},
|
||
|
module: {
|
||
|
rules: [
|
||
|
{
|
||
|
test : /\.js$/,
|
||
|
exclude : /(node_modules|build|dist\/)/,
|
||
|
loader : 'babel-loader',
|
||
|
options : { presets: ["@babel/preset-env"] }
|
||
|
}
|
||
|
]
|
||
|
},
|
||
|
resolve: {
|
||
|
extensions: ['.webpack-loader.js', '.web-loader.js', '.loader.js', '.js'],
|
||
|
modules: [
|
||
|
path.join(__dirname, './node_modules'),
|
||
|
__dirname,
|
||
|
],
|
||
|
},
|
||
|
optimization: {
|
||
|
minimize: true,
|
||
|
},
|
||
|
};
|