Align loaders name

This commit is contained in:
Paulo Gustavo Veiga 2021-10-03 08:18:48 -07:00
parent 6395f05d96
commit 224f0f0446
5 changed files with 17 additions and 51 deletions

View File

@ -0,0 +1,14 @@
const Mindplot = require('../../lib/mindplot');
global.mindplot = Mindplot();
const TestSuite = require('./lib/TestSuite').default;
const BalancedTestSuite = require('./lib/BalancedTestSuite').default;
const SymmetricTestSuite = require('./lib/SymmetricTestSuite').default;
const FreeTestSuite = require('./lib/FreeTestSuite').default;
window.addEventListener('DOMContentLoaded', function () {
var basicTest = new TestSuite();
var balancedTest = new BalancedTestSuite();
var symmetricTest = new SymmetricTestSuite();
var freeTest = new FreeTestSuite();
});

View File

@ -1,14 +0,0 @@
const Mindplot = require('../../../lib/mindplot');
global.mindplot = Mindplot();
const TestSuite = require('./TestSuite').default;
const BalancedTestSuite = require('./BalancedTestSuite').default;
const SymmetricTestSuite = require('./SymmetricTestSuite').default;
const FreeTestSuite = require('./FreeTestSuite').default;
window.addEventListener('DOMContentLoaded', function () {
var basicTest = new TestSuite();
var balancedTest = new BalancedTestSuite();
var symmetricTest = new SymmetricTestSuite();
var freeTest = new FreeTestSuite();
});

View File

@ -1,16 +0,0 @@
const Mindplot = require('../../../lib/mindplot');
const mindplot = Mindplot();
window.addEventListener('load', function (e) {
var model = {
getValue: function () {},
setValue: function (value) {
console.log('value:' + value);
},
};
var palette = new mindplot.widget.ColorPalettePanel(
'myButton',
model,
'../../../lib/components/widget'
);
});

View File

@ -1,13 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<body>
<div id="myButton" style="border: 1px red solid">The button</div>
</body>
</body>
</html>

View File

@ -5,8 +5,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
/** @type {import('webpack').Configuration} */
module.exports = {
entry: {
palette: path.resolve(__dirname, './test/playground/lib/testPalette'),
layout: path.resolve(__dirname, './test/playground/lib/testLayout'),
layout: path.resolve(__dirname, './test/playground/context-loader'),
},
output: {
path: path.resolve(__dirname, 'dist', 'test'),
@ -27,15 +26,11 @@ module.exports = {
use: 'babel-loader',
test: /.(js|jsx)$/,
exclude: /node_modules/,
},
{
type: 'asset',
test: /\.(png|svg|jpg|jpeg|gif)$/i,
},
}
],
},
resolve: {
extensions: ['.js', '.jsx', '.json'],
extensions: ['.js','.json'],
},
plugins: [
new CleanWebpackPlugin(),