forked from mirror/ObjToSchematic
Cleaned up template.html and styles.css and webpack config
This commit is contained in:
parent
f533f84fc4
commit
fbbc57ad52
515
package-lock.json
generated
515
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -64,7 +64,6 @@
|
||||
"prompt": "^1.2.1",
|
||||
"raw-loader": "^4.0.2",
|
||||
"sharp": "^0.31.3",
|
||||
"style-loader": "^3.3.1",
|
||||
"ts-jest": "^27.1.3",
|
||||
"ts-loader": "^9.4.2",
|
||||
"ts-node": "^10.1.0",
|
||||
@ -81,6 +80,7 @@
|
||||
"dependencies": {
|
||||
"@loaders.gl/core": "^3.3.1",
|
||||
"@loaders.gl/gltf": "^3.3.1",
|
||||
"copy-webpack-plugin": "^11.0.0",
|
||||
"split.js": "^1.6.5"
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,8 @@
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="https://objtoschematic.com/" />
|
||||
<meta property="og:image" content="https://i.imgur.com/TwdIpyb.png" />
|
||||
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
</head>
|
||||
<body>
|
||||
<div class="content">
|
@ -1,4 +1,3 @@
|
||||
import '../../styles.css';
|
||||
import ATLAS_VANILLA from '../../res/atlases/vanilla.atlas';
|
||||
|
||||
import { AppAnalytics } from './analytics';
|
||||
|
@ -1,29 +1,27 @@
|
||||
const path = require('path');
|
||||
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
|
||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
||||
const CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = {
|
||||
entry: './src/editor/main.ts',
|
||||
plugins: [
|
||||
new NodePolyfillPlugin(),
|
||||
new HtmlWebpackPlugin({
|
||||
template: './template.html',
|
||||
template: 'public/index.html',
|
||||
favicon: './res/static/icon.ico',
|
||||
}),
|
||||
new CopyWebpackPlugin({
|
||||
patterns: [
|
||||
{ from: "public/styles.css", to: "." }
|
||||
],
|
||||
}),
|
||||
],
|
||||
module: {
|
||||
rules: [
|
||||
{
|
||||
test: /\.worker.ts$/,
|
||||
use: [
|
||||
'worker-loader',
|
||||
'ts-loader',
|
||||
],
|
||||
},
|
||||
{
|
||||
test: /\.css$/i,
|
||||
use: ['style-loader', 'css-loader'],
|
||||
exclude: /node_modules/,
|
||||
loader: 'worker-loader',
|
||||
},
|
||||
{
|
||||
test: /\.vs|fs|atlas$/,
|
||||
|
Loading…
Reference in New Issue
Block a user