Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { BundleAnalyzerPlugin } from 'webpack-bundle-analyzer';
import * as webpack from "webpack";
import * as path from "path";
import { CheckerPlugin } from "awesome-typescript-loader";
import { AutoWebPlugin, WebPlugin } from "web-webpack-plugin";
import * as CopyWebpackPlugin from "copy-webpack-plugin";
import * as fs from 'fs';
declare var __dirname;
var nbgv = require('nerdbank-gitversioning')
nbgv.getVersion()
.then(r => {
var mkdirp = require('mkdirp');
mkdirp.sync('dist/data');
fs.writeFileSync('dist/data/version-info.json', JSON.stringify(r, null, 2), "utf8")
})
.catch(e => console.error(e));
const config: webpack.Configuration = {
entry: {
main: path.resolve(__dirname, 'src/map.ts')
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name]-subnautica-map.bundle.js'
},