mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-11 01:43:23 +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({
|
return new HtmlWebpackPlugin({
|
||||||
chunks: ['testing'],
|
chunks: ['testing'],
|
||||||
filename: `${name}`,
|
filename: `${name}`,
|
||||||
template: `test/javascript/render/${name}.html`,
|
template: `test/playground/${name}.html`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/** @type {import('webpack').Configuration} */
|
/** @type {import('webpack').Configuration} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
entry: {
|
entry: {
|
||||||
testing: './test/javascript/render/testing.js',
|
testing: './test/playground/testing.js',
|
||||||
},
|
},
|
||||||
output: {
|
output: {
|
||||||
path: path.resolve(__dirname, 'dist', 'tests'),
|
path: path.resolve(__dirname, 'dist', 'tests'),
|
||||||
@ -61,6 +61,6 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(),
|
new CleanWebpackPlugin(),
|
||||||
new HtmlWebpackPlugin({ template: 'test/javascript/render/index.html' }),
|
new HtmlWebpackPlugin({ template: 'test/playground/index.html' }),
|
||||||
].concat(multiHtmlPlugin),
|
].concat(multiHtmlPlugin),
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user