mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 19:53:49 +01:00
Remove javascript folder structure
This commit is contained in:
parent
24b3f828e3
commit
d53f13efd9
@ -1,3 +0,0 @@
|
||||
import { default as web2D } from '../../../lib/web2d';
|
||||
|
||||
global.web2d = web2D();
|
3
packages/web2d/test/playground/testing.js
Normal file
3
packages/web2d/test/playground/testing.js
Normal file
@ -0,0 +1,3 @@
|
||||
import { default as web2D } from '../../lib/web2d';
|
||||
|
||||
global.web2d = web2D();
|
@ -21,14 +21,14 @@ const multiHtmlPlugin = namesHTML.map((name) => {
|
||||
return new HtmlWebpackPlugin({
|
||||
chunks: ['testing'],
|
||||
filename: `${name}`,
|
||||
template: `test/javascript/render/${name}.html`,
|
||||
template: `test/playground/${name}.html`,
|
||||
});
|
||||
});
|
||||
|
||||
/** @type {import('webpack').Configuration} */
|
||||
module.exports = {
|
||||
entry: {
|
||||
testing: './test/javascript/render/testing.js',
|
||||
testing: './test/playground/testing.js',
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist', 'tests'),
|
||||
@ -61,6 +61,6 @@ module.exports = {
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({ template: 'test/javascript/render/index.html' }),
|
||||
new HtmlWebpackPlugin({ template: 'test/playground/index.html' }),
|
||||
].concat(multiHtmlPlugin),
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user