add hw2
This commit is contained in:
32
node_modules/antlr4/webpack.config.cjs
generated
vendored
Normal file
32
node_modules/antlr4/webpack.config.cjs
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
const path = require('path');
|
||||
const ESLintPlugin = require('eslint-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
mode: "production",
|
||||
entry: './src/antlr4/index.js',
|
||||
output: {
|
||||
filename: 'antlr4.js',
|
||||
path: path.resolve(__dirname, 'dist'),
|
||||
// the name of the exported antlr4
|
||||
library: "antlr4",
|
||||
libraryTarget: 'window'
|
||||
},
|
||||
externals: {
|
||||
module: "empty",
|
||||
net: "empty",
|
||||
fs: "empty"
|
||||
},
|
||||
target: "web",
|
||||
module: {
|
||||
rules: [{
|
||||
test: /\.js$/,
|
||||
exclude: /node_modules/,
|
||||
use: [ 'babel-loader' ]
|
||||
}]
|
||||
},
|
||||
performance: {
|
||||
maxAssetSize: 512000,
|
||||
maxEntrypointSize: 512000
|
||||
},
|
||||
plugins: [ new ESLintPlugin() ]
|
||||
};
|
||||
Reference in New Issue
Block a user