wisemapping-frontend/packages/core-js/webpack.common.js

60 lines
1.8 KiB
JavaScript
Raw Normal View History

2021-07-16 16:41:58 +02:00
const path = require('path'); // eslint-disable-line
//const { ProvidePlugin } = require('webpack');
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); // eslint-disable-line
/** @type {import('webpack').Configuration} */
module.exports = { // eslint-disable-line
entry: './lib/core.js',
output: {
path: path.resolve(__dirname, 'dist'), // eslint-disable-line
filename: 'core.js',
publicPath: '',
},
module: {
rules: [
{
use: 'babel-loader',
test: /.(js|jsx)$/,
exclude: /node_modules/,
},
{
type: 'asset',
test: /\.(png|svg|jpg|jpeg|gif)$/i,
},
],
},
resolve: {
extensions: ['.js', '.jsx', '.json'],
},
plugins: [new CleanWebpackPlugin()],
};
/*
*{
core: [
path.resolve(__dirname, '../mindplot/src/main/javascript/Options'),
path.resolve(
__dirname,
'../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog'
),
path.resolve(
__dirname,
'../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request'
),
],
},
Options: path.resolve(path.join(__dirname, '../mindplot/src/main/javascript/Options')),
BootstrapDialog: path.resolve(
path.join(
__dirname,
'../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog'
)
),
BootstrapDialogRequest: path.resolve(
path.join(
__dirname,
'../mindplot/src/main/javascript/libraries/bootstrap/BootstrapDialog.Request'
)
),
* */