-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #376 from systragroup/master
rebase
- Loading branch information
Showing
15 changed files
with
1,395 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
U2FsdGVkX1+v5qIUW7B6a2x+/ipmyF02QlJ1lmATCI8dzTUDcjlGW9DpMAOqtE7E | ||
uUtAFZm0OE0F8V7jP3q2PynbkxT9p6jGL1dlAAlav8/05CaS+0oZJnc0KZIzn7XM | ||
0pmbBn9aOMNy1inEAVbUsljWPtQjfgZA7NmPy13RNgzqnaVOWWO7Y71UC0EBuNee | ||
cD8pD0cyOr8U9JnyB99t7VosIn9kHMqAKYZlfMEoT8u9/dCFoyDMQTMrnor15A4E | ||
NodAf8KlMeoOIaXEvroH3GKV/Amg5jGH0p6smqHzIc6Dldeik9fyWX7rcTmeqjk6 | ||
mc7/tL9WRBxgZ4zcRNkWtVfCfx08B0Fs9DRXQjTz0Q+STI2uv7lI4TaSCDzANu2c | ||
DgUVyhUlWfhxOWvqNgbqEVbx5+m4EDNulsBXb8cz4KwZSMn6pyySD6742W4fi1rX | ||
jWviSlCDw0QiGhqsRISHewppusr4zZ5lWVgzB7ShI5k/4BtMInZVmKqIqJY9QSQ0 | ||
RPII0L7XLxP2zNWbCkYsA5d0rE1Qgu3J2pkiD1FrGV5iMHkDedf6uRbjG2+uLHDQ | ||
G5oxNAeh1Z/iAYaRVr0V4N1SkrGRjDLYWtza/t5N1zXL0FPk4FYz6yUBlvoPrnkH | ||
rfZad6FEeRwgBgn8CjGVnuxu+YnV56W+zir/hRCqvOOoFNL5XLqvih/SCt18GSZi | ||
XcuXw5ht8zDhpu2yrNthnlXz5N9YgvUOO5h1x2j/rx5eKWp3cGICLv/0bOPhAAL+ | ||
mVREwQvJhI7xglU79f0y41c2VPalxWIE8sSe0YyFbOv2O8AI2RdTxrlJaQ6w/E7w | ||
KV2g/Nc2IY24bB7SknPwc59aWehpQ0g4MV43bOXwzM6QM24g2jkrvMPeVLaebgVG | ||
ncfk9PJ3BmeBCNs/XNvkndFBjLsUNEmTVZWwYCUMn8s= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
.DS_Store | ||
*~ | ||
node_modules/ | ||
/dist/ | ||
reports/ | ||
.npmrc | ||
/src/config.js | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
'use strict' | ||
const { VueLoaderPlugin } = require('vue-loader') | ||
const HtmlWebPackPlugin = require('html-webpack-plugin') | ||
const CopyPlugin = require('copy-webpack-plugin') | ||
const MiniCssExtractPlugin = require('mini-css-extract-plugin') | ||
const WriteFilePlugin = require('write-file-webpack-plugin') | ||
const path = require('path') | ||
const Dotenv = require('dotenv-webpack') | ||
module.exports = { | ||
mode: 'production', | ||
target: 'web', | ||
entry: [ | ||
'./src/main.js', | ||
], | ||
output: { | ||
filename: 'build.js', | ||
publicPath: '/quetzal-network-editor/', | ||
}, | ||
resolve: { | ||
alias: { | ||
'vue': 'vue/dist/vue.esm.js', | ||
'@src': path.resolve('src'), | ||
'@comp': path.resolve('src/components'), | ||
'@page': path.resolve('src/pages'), | ||
'@lang': path.resolve('src/languages'), | ||
'@scss': path.resolve('src/scss'), | ||
'@static': path.resolve('static'), | ||
}, | ||
extensions: [ | ||
'.wasm', | ||
'.mjs', | ||
'.js', | ||
'.jsx', | ||
'.json', | ||
'.vue', | ||
], | ||
}, | ||
devtool: 'source-map', | ||
devServer: { | ||
// to server index.html (in fact 'output.publicPath') instead of any 404 page | ||
historyApiFallback: true, | ||
hot: true, | ||
client: { | ||
// Enables a full-screen overlay in the browser when there are compiler errors or warnings | ||
overlay: true, | ||
}, | ||
https: false, | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.vue$/, | ||
use: 'vue-loader', | ||
}, | ||
{ | ||
test: /\.s[ac]ss$/i, | ||
use: [ | ||
'style-loader', | ||
'css-loader', | ||
{ | ||
loader: 'sass-loader', | ||
options: { | ||
// Load variables for each <style> section of vue component | ||
additionalData: '@import "@scss/variables.scss";', | ||
}, | ||
}, | ||
], | ||
}, | ||
{ | ||
test: /\.css$/, | ||
use: ['style-loader', 'css-loader'], | ||
}, | ||
{ | ||
test: /\.(png|woff|woff2|eot|ttf|svg)$/, | ||
type: 'asset', | ||
}, | ||
{ | ||
test: /\.mjs$/, | ||
include: /node_modules/, | ||
type: 'javascript/auto', | ||
}, | ||
{ | ||
test: /\.geojson$/, | ||
use: 'json5-loader', | ||
}, | ||
], | ||
}, | ||
plugins: [ | ||
new VueLoaderPlugin(), | ||
new HtmlWebPackPlugin({ | ||
template: './index.html', | ||
filename: './index.html', | ||
minify: false, | ||
}), | ||
new CopyPlugin({ | ||
patterns: [ | ||
{ from: './*', to: '.', context: 'static/' }, | ||
], | ||
}), | ||
new WriteFilePlugin(), | ||
new MiniCssExtractPlugin({ | ||
// Options similar to the same options in webpackOptions.output | ||
// both options are optional | ||
filename: 'build.css', | ||
chunkFilename: '[id].css', | ||
}), | ||
new Dotenv({ path: './.env.test' }), | ||
], | ||
optimization: { | ||
splitChunks: { | ||
cacheGroups: { | ||
config: { | ||
filename: 'config.js', | ||
test: path.resolve(process.cwd(), 'src/config.js'), | ||
chunks: 'initial', | ||
enforce: true, | ||
}, | ||
vendor: { | ||
filename: 'vendor.js', | ||
test: path.resolve(process.cwd(), 'node_modules'), | ||
chunks: 'initial', | ||
enforce: true, | ||
}, | ||
}, | ||
}, | ||
}, | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<link rel="shortcut icon" type="image/png" href="favicon.png"/> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> | ||
<title>Quetzal Network Editor</title> | ||
<script defer src="/quetzal-network-editor/vendor.js"></script><script defer src="/quetzal-network-editor/build.js"></script></head> | ||
<body> | ||
<div id="app"></div> | ||
<!-- built files will be auto injected --> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.