123456789101112131415161718192021222324252627282930313233343536 |
- var path = require('path');
- var webpack = require('webpack');
- module.exports = {
- entry: './js/main.js',
- mode: 'development',
- watch: false,
- output: {
- path: path.resolve(__dirname, 'build'),
- //chunkFilename: '[name].bundle.js',
- filename: 'ivprog.bundle.js'
- },
- 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'
- };
|