Skip to content

Commit

Permalink
fix: Turn off bundling for now, hopefully this makes it easier for Ke…
Browse files Browse the repository at this point in the history
…vin to work.
  • Loading branch information
xdy committed Aug 16, 2020
1 parent 2749a29 commit a91bdb3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CopyWebpackPlugin from "copy-webpack-plugin";
import WriteFilePlugin from "write-file-webpack-plugin";
import {Configuration} from "webpack";
import MiniCssExtractPlugin from "mini-css-extract-plugin";

import glob from "glob";

//Only a partial type, not sure what else can be in this, and haven't looked into it.
type FoundryConfig = { dataPath:string, systemName:string };
Expand All @@ -21,9 +21,10 @@ function getFoundryConfig():FoundryConfig {
module.exports = (env, argv) => {
const config:Configuration = {
context: __dirname,
entry: {
main: "./src/twodsix.ts",
},
entry: glob.sync('./src/*.ts', './src/**/*.ts').reduce((acc, file) => {
acc[file.replace(/^\.\/src\/(.*?)\.js$/, (_, filename) => filename)] = file
return acc
}, {}),
mode: "development",
module: {
rules: [
Expand Down Expand Up @@ -64,7 +65,7 @@ module.exports = (env, argv) => {
},
output: {
path: path.join(__dirname, 'dist'),
filename: "twodsix.bundle.js",
filename: '[name].js'
},
};

Expand Down

0 comments on commit a91bdb3

Please sign in to comment.