Skip to content

Commit

Permalink
build(simput): Update config to build lib for simput
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Apr 13, 2018
1 parent 0483d3c commit 4db11b3
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
const path = require('path');

const plugins = [];
const entry = path.join(__dirname, './src/index.js');
const sourcePath = path.join(__dirname, './src');
const outputPath = path.join(__dirname, './dist');

const linterRules = require('./rules/linter.js');
const veraRules = require('./rules/vera.js');
const vtkRules = require('./rules/vtkjs.js');

const plugins = [];
const app = path.join(__dirname, './src/index.js');
const simput = path.join(__dirname, './src/simput/index.js');
const sourcePath = path.join(__dirname, './src');
const outputPath = path.join(__dirname, './dist');

module.exports = {
plugins,
entry,
entry: {
vera: app,
'simput-external-vera': simput,
},
output: {
path: outputPath,
filename: 'vera.js',
filename: '[name].js',
},
module: {
rules: [{ test: entry, loader: 'expose-loader?vera' }].concat(
rules: [{ test: app, loader: 'expose-loader?vera' }].concat(
linterRules,
veraRules,
vtkRules
Expand Down

0 comments on commit 4db11b3

Please sign in to comment.