2024-03-11 14:56:03 +00:00
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
const miniCssExtractPlugin = require("mini-css-extract-plugin");
|
|
|
|
const autoprefixer = require('autoprefixer');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: {
|
|
|
|
api: "./assets/js/api.js",
|
|
|
|
scene: "./assets/js/scene.js",
|
|
|
|
editor: "./assets/js/editor.js",
|
Enhance editor UI and user content management
Introduced significant updates to the user interface for editing VR
scenes, adding new CSS styles for a coherent and modern look.
Implemented data tables for robust content management in the user area,
now users can easily navigate through scenes and media with DataTables
integration. Expanded the API with category retrieval capabilities,
enabling dynamic content categorization.
The editor now seamlessly integrates into the UI with a sidebar for
properties editing, improving usability. The teleportation element
creation and modification logic has been significantly refined,
including a search-enabled dropdown for destination selection, making it
more user-friendly. Added thumbnail display for scenes and media in the
user area, enhancing content overview.
This update also introduced user area templates and routes, providing a
foundational structure for user content management functionality,
including categories and individual category views.
Refactored JavaScript imports to align with the new editor CSS and
adjusted scene loading to support embedded scenes, improving the
flexibility and usability of scene components.
2024-03-14 16:28:14 +00:00
|
|
|
userarea: "./assets/js/userarea.js",
|
2024-03-11 14:56:03 +00:00
|
|
|
},
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, "static/js"),
|
|
|
|
filename: "[name].bundle.js",
|
|
|
|
},
|
|
|
|
plugins: [new miniCssExtractPlugin()],
|
|
|
|
module: {
|
|
|
|
rules: [
|
|
|
|
{
|
|
|
|
test: /\.js$/,
|
|
|
|
exclude: /node_modules/,
|
|
|
|
use: {
|
|
|
|
loader: "babel-loader",
|
|
|
|
options: {
|
|
|
|
presets: ["@babel/preset-env"],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.css$/,
|
|
|
|
use: ["style-loader", "css-loader"],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
test: /\.scss$/,
|
|
|
|
use: [
|
|
|
|
{
|
|
|
|
// Adds CSS to the DOM by injecting a `<style>` tag
|
|
|
|
loader: "style-loader",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Interprets `@import` and `url()` like `import/require()` and will resolve them
|
|
|
|
loader: "css-loader",
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Loader for webpack to process CSS with PostCSS
|
|
|
|
loader: "postcss-loader",
|
|
|
|
options: {
|
|
|
|
postcssOptions: {
|
|
|
|
plugins: [autoprefixer],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
// Loads a SASS/SCSS file and compiles it to CSS
|
|
|
|
loader: "sass-loader",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
};
|