mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-23 12:03:49 +01:00
31 lines
822 B
JavaScript
31 lines
822 B
JavaScript
const path = require('path'); // eslint-disable-line
|
|
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()],
|
|
};
|