12345678910111213141516171819202122232425262728293031323334353637 |
- var path = require('path');
- var webpack = require('webpack');
- module.exports = {
- entry: './js/main.js',
- mode: 'development',
- watch: true,
- output: {
- path: path.resolve(__dirname, 'build'),
- filename: 'ivprog.bundle.js',
- library: 'ivprogCore',
- libraryTarget: 'umd'
- },
- node: {
- fs: 'empty',
- },
- module: {
- rules: [{
- test: /\.js$/,
- loader: 'babel-loader',
- query: {
- presets: ['env']
- }
- }, {
- test: /\.g4/,
- loader: 'antlr4-webpack-loader'
- }]
- },
- stats: {
- colors: true
- },
- /*optimization: {
- splitChunks: {
- chunks: 'all'
- }
- },*/
- devtool: 'source-map'
- };
|