pegjs/webpack.config.js

38 lines
805 B
JavaScript
Raw Normal View History

2019-02-12 03:00:48 +01:00
"use strict";
const target = require( "@pegjs/bundler/target" );
module.exports = [
/* packages/pegjs/dist/peg.js */
target( {
entry: require.resolve( "pegjs" ),
2019-02-13 06:01:07 +01:00
library: "peg",
2019-02-12 03:00:48 +01:00
output: "packages/pegjs/dist/peg.js",
} ),
/* packages/pegjs/dist/peg.min.js */
target( {
entry: require.resolve( "pegjs" ),
2019-02-13 06:01:07 +01:00
library: "peg",
2019-02-12 03:00:48 +01:00
output: "packages/pegjs/dist/peg.min.js",
} ),
/* https://pegjs.org/*-bundle.min.js */
target( {
entry: {
"benchmark": require.resolve( "@pegjs/benchmark-suite/browser.js" ),
2019-02-14 12:05:27 +01:00
"test": require.resolve( "@pegjs/spec-suite/browser.stub.js" ),
2019-02-12 03:00:48 +01:00
},
2019-02-13 06:01:07 +01:00
library: [ "peg", "[name]" ],
2019-02-12 03:00:48 +01:00
output: "docs/.vuepress/public/[name]-bundle.min.js",
} ),
];