Sha256: 35b543d9ea36ec6d602530f7cefe3d6435eb9acc5ae07cc4baef8fab5f7ae582

Contents?: true

Size: 723 Bytes

Versions: 26

Compression:

Stored size: 723 Bytes

Contents

const { merge } = require("webpack-merge");
const singleSpaDefaults = require("webpack-config-single-spa-react");
const path = require("path");

function resolve(dir) {
  return path.join(__dirname, "..", dir);
}

module.exports = (webpackConfigEnv, argv) => {
  const defaultConfig = singleSpaDefaults({
    orgName: "openc3",
    projectName: "<%= tool_name %>",
    webpackConfigEnv,
    argv,
    orgPackagesAsExternal: false,
  });

  delete defaultConfig.externals;

  return merge(defaultConfig, {
    output: {
      path: path.resolve(__dirname, "tools/<%= tool_name %>"),
      filename: "main.js",
      libraryTarget: "system", // This line is in all the vue.config.js files, is it needed here?
    },
  });
};

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
openc3-6.1.0 templates/tool_react/webpack.config.js
openc3-6.0.2 templates/tool_react/webpack.config.js
openc3-6.0.1 templates/tool_react/webpack.config.js
openc3-6.0.0 templates/tool_react/webpack.config.js
openc3-5.20.0 templates/tool_react/webpack.config.js
openc3-5.19.0 templates/tool_react/webpack.config.js
openc3-5.18.0 templates/tool_react/webpack.config.js
openc3-5.17.1 templates/tool_react/webpack.config.js
openc3-5.17.0 templates/tool_react/webpack.config.js
openc3-5.16.0 templates/tool_react/webpack.config.js
openc3-5.15.2 templates/tool_react/webpack.config.js
openc3-5.15.1 templates/tool_react/webpack.config.js
openc3-5.15.0 templates/tool_react/webpack.config.js
openc3-5.14.2 templates/tool_react/webpack.config.js
openc3-5.14.1 templates/tool_react/webpack.config.js
openc3-5.14.0 templates/tool_react/webpack.config.js
openc3-5.13.0 templates/tool_react/webpack.config.js
openc3-5.12.0 templates/tool_react/webpack.config.js
openc3-5.11.3 templates/tool_react/webpack.config.js
openc3-5.11.2 templates/tool_react/webpack.config.js