wisemapping-frontend/packages/mindplot/webpack.test.js

30 lines
737 B
JavaScript
Raw Normal View History

2021-09-07 22:31:46 +02:00
const path = require('path');
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
/** @type {import('webpack').Configuration} */
module.exports = {
entry: './lib/mindplot',
output: {
path: path.resolve(__dirname, 'dist', 'test'),
filename: '[name].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()],
};