let path = require("path")
let fs = require("fs")

let pkg = JSON.parse(
    fs.readFileSync(path.join(__dirname, "package.json"), "utf-8")
)
let version = pkg.version

module.exports = {
    entry: [
        "./src/threejs/renderers/Projector.js",
        "./src/threejs/controls/FlyControls.js",
        "./src/threejs/textures/threex.dynamictexture.js",
        "./src/HtmCells.js",
        "./src/InputCells.js",
        "./src/HtmMiniColumns.js",
        "./src/BaseGridVisualization.js",
        "./src/CompleteHtmVisualization.js",
        "./src/SingleLayerVisualization.js",
        "./src/SpToInputVisualization.js",
        "./src/HighbrowLayerVisualization.js",
        "./src/HighbrowColumnVisualization.js",
        "./src/HtmViz.js"
    ],
    output: {
        path: __dirname + "/bin",
        filename: `cell-viz-${version}.bundle.js`
    }
};

"use strict";
let path = require("path")
let fs = require("fs")

let pkg = JSON.parse(
    fs.readFileSync(path.join(__dirname, "package.json"), "utf-8")
)
let version = pkg.version

module.exports = {
    entry: [
        "./src/threejs/renderers/Projector.js",
        "./src/threejs/controls/FlyControls.js",
        "./src/threejs/textures/threex.dynamictexture.js",
        "./src/HtmCells.js",
        "./src/InputCells.js",
        "./src/HtmMiniColumns.js",
        "./src/BaseGridVisualization.js",
        "./src/CompleteHtmVisualization.js",
        "./src/SingleLayerVisualization.js",
        "./src/SpToInputVisualization.js",
        "./src/HighbrowLayerVisualization.js",
        "./src/HighbrowColumnVisualization.js",
        "./src/HtmViz.js"
    ],
    output: {
        path: __dirname + "/bin",
        filename: `cell-viz-${version}.bundle.js`
    }
};

Enable strict mode in webpack.config.js to be able to use let