mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
Create libraries directory
This commit is contained in:
parent
c1fccbc489
commit
181ca7b34e
@ -4,43 +4,43 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
|
||||
/** @type {import('webpack').Configuration} */
|
||||
module.exports = {
|
||||
entry: {
|
||||
layout: path.resolve(__dirname, './test/playground/context-loader'),
|
||||
entry: {
|
||||
layout: path.resolve(__dirname, './test/playground/context-loader'),
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist', 'test'),
|
||||
filename: '[name].test.js',
|
||||
publicPath: '',
|
||||
},
|
||||
mode: 'production',
|
||||
optimization: {
|
||||
splitChunks: {
|
||||
chunks: 'all',
|
||||
minSize: 2000000,
|
||||
},
|
||||
output: {
|
||||
path: path.resolve(__dirname, 'dist', 'test'),
|
||||
filename: '[name].test.js',
|
||||
publicPath: '',
|
||||
},
|
||||
mode: 'production',
|
||||
optimization: {
|
||||
splitChunks: {
|
||||
chunks: 'all',
|
||||
minSize: 2000000,
|
||||
},
|
||||
},
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
use: 'babel-loader',
|
||||
test: /.(js|jsx)$/,
|
||||
exclude: /node_modules/,
|
||||
}
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js','.json'],
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'test/playground/index.html',
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
chunks: ['layout'],
|
||||
filename: 'layout',
|
||||
template: 'test/playground/layout.html',
|
||||
}),
|
||||
},
|
||||
devtool: 'source-map',
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
use: 'babel-loader',
|
||||
test: /.js$/,
|
||||
exclude: /node_modules/,
|
||||
},
|
||||
],
|
||||
},
|
||||
resolve: {
|
||||
extensions: ['.js', '.json'],
|
||||
},
|
||||
plugins: [
|
||||
new CleanWebpackPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'test/playground/index.html',
|
||||
}),
|
||||
new HtmlWebpackPlugin({
|
||||
chunks: ['layout'],
|
||||
filename: 'layout',
|
||||
template: 'test/playground/layout.html',
|
||||
}),
|
||||
],
|
||||
};
|
||||
|
@ -59,10 +59,12 @@
|
||||
workspacePosition();
|
||||
|
||||
// Draw a reference grid.
|
||||
var container = document.getElementById("sizeExampleContainer");
|
||||
var grid = new Grid(container, 35, 12);
|
||||
grid.setPosition("0px", "0px")
|
||||
grid.render();
|
||||
|
||||
// Enable when JS is loading ...
|
||||
// var container = document.getElementById("sizeExampleContainer");
|
||||
// var grid = new Grid(container, 35, 12);
|
||||
// grid.setPosition("0px", "0px")
|
||||
// grid.render();
|
||||
|
||||
// Define a workspace using pixels and inchs.
|
||||
var workspacePixel = new web2d.Workspace();
|
||||
|
@ -23,4 +23,5 @@ module.exports = {
|
||||
extensions: ['.js', '.json'],
|
||||
},
|
||||
plugins: [new CleanWebpackPlugin()],
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user