Skip to content

Commit

Permalink
chore: update install guide webview to latest components versions, fi…
Browse files Browse the repository at this point in the history
…x webpack build
  • Loading branch information
jansorg authored and ahtrotta committed Jan 23, 2024
1 parent a2ec0e2 commit 6b85fa7
Show file tree
Hide file tree
Showing 6 changed files with 4,619 additions and 3,161 deletions.
1 change: 1 addition & 0 deletions appland-install-guide/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 1 addition & 2 deletions appland-install-guide/dist/main.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions appland-install-guide/dist/main.js.LICENSE.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
*/

/*!
* Vue.js v2.7.14
* (c) 2014-2022 Evan You
* Vue.js v2.7.16
* (c) 2014-2023 Evan You
* Released under the MIT License.
*/

Expand All @@ -23,6 +23,8 @@
* @license MIT
*/

/*! @license DOMPurify 3.0.8 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.0.8/LICENSE */

/*! https://mths.be/punycode v1.4.1 by @mathias */

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
Expand Down
6 changes: 3 additions & 3 deletions appland-install-guide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"webpack-cli": "^4.6"
},
"dependencies": {
"@appland/components": "^3.5.0",
"@appland/components": "^3.25.1",
"url": "^0.11",
"vue": "^2.7",
"vue-template-compiler": "^2.7",
"url": "^0.11"
"vue-template-compiler": "^2.7"
},
"packageManager": "[email protected]"
}
101 changes: 58 additions & 43 deletions appland-install-guide/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,51 +1,66 @@
/* eslint-disable */
const path = require('path');

module.exports = {
entry: './main.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
devtoolModuleFilenameTemplate: '[resource-path]',
library: 'AppLandWeb',
},
devtool: 'source-map',
resolve: {
extensions: ['.js', '.mjs'],
alias: {
vue: path.resolve('./node_modules/vue/dist/vue.esm.browser.js'),
vuex: path.resolve('./node_modules/vuex'),
},
fallback: {
crypto: 'crypto-js',
module.exports = (env, argv) => {
const isProduction = argv.mode === 'production'

let config = {
entry: './main.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
devtoolModuleFilenameTemplate: '[resource-path]',
library: 'AppLandWeb',
},
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {},
},
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
resolve: {
extensions: ['.js', '.mjs'],
alias: {
messagePublisher: path.resolve('../appland-shared/messagePublisher.js'),
vsCodeBridge: path.resolve('../appland-shared/vsCodeBridge.js'),
vue: path.resolve('./node_modules/vue/dist/vue.esm.browser.js'),
vuex: path.resolve('./node_modules/vuex'),
},
{
test: /\.html$/i,
loader: 'html-loader',
fallback: {
crypto: 'crypto-js',
assert: false,
buffer: false,
http: false,
https: false,
},
{
test: /\.(svg|ttf)$/i,
use: [
{
loader: 'file-loader',
},
module: {
rules: [
{
test: /\.m?js$/,
exclude: /node_modules/,
use: {
loader: 'babel-loader',
options: {},
},
],
},
],
},
},
{
test: /\.css$/i,
use: ['style-loader', 'css-loader'],
},
{
test: /\.html$/i,
loader: 'html-loader',
},
{
test: /\.(svg|ttf)$/i,
use: [
{
loader: 'file-loader',
},
],
},
],
},
}

if (!isProduction) {
config.devtool = 'source-map'
}

return config;
};
Loading

0 comments on commit 6b85fa7

Please sign in to comment.