mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 11:17:57 +01:00
2370faea62
Mindplot webcomponent * styles in js file * editor now uses bootstrap widget manager * fix console error: preventDefault on pasive events * Mode as webcomponent parámeter. Rename of init method * fix merge * Mindplot webcomponent documentation * fix * remove comments * delete comments * Merged in Alejandro-Raiczyk/just-details-1661445571189 (pull request #56) just details Approved-by: Paulo Veiga
41 lines
1.0 KiB
JavaScript
41 lines
1.0 KiB
JavaScript
const path = require('path');
|
|
const { CleanWebpackPlugin } = require('clean-webpack-plugin');
|
|
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
const CopyPlugin = require('copy-webpack-plugin');
|
|
const { merge } = require('webpack-merge');
|
|
const common = require('./webpack.common');
|
|
|
|
const playgroundConfig = {
|
|
mode: 'development',
|
|
entry: {
|
|
layout: path.resolve(__dirname, './test/playground/layout/context-loader'),
|
|
},
|
|
output: {
|
|
path: path.resolve(__dirname, 'test/playground/dist'),
|
|
filename: '[name].js',
|
|
library: {
|
|
type: 'umd',
|
|
},
|
|
},
|
|
devServer: {
|
|
historyApiFallback: true,
|
|
port: 8083,
|
|
open: false
|
|
},
|
|
plugins: [
|
|
new CleanWebpackPlugin(),
|
|
new CopyPlugin({
|
|
patterns: [
|
|
{ from: 'test/playground/index.html', to: 'index.html' },
|
|
],
|
|
}),
|
|
new HtmlWebpackPlugin({
|
|
chunks: ['layout'],
|
|
filename: 'layout.html',
|
|
template: 'test/playground/layout/index.html',
|
|
}),
|
|
],
|
|
};
|
|
|
|
module.exports = merge(common, playgroundConfig);
|