Skip to content
Snippets Groups Projects
Verified Commit 3aa54a83 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Reduced page weight

parent 2037ce00
No related branches found
No related tags found
No related merge requests found
Pipeline #4231 passed
...@@ -32,7 +32,8 @@ ...@@ -32,7 +32,8 @@
"dotenv-webpack": "^1.7.0", "dotenv-webpack": "^1.7.0",
"eslint": "^5.16.0", "eslint": "^5.16.0",
"eslint-plugin-vue": "^5.0.0", "eslint-plugin-vue": "^5.0.0",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.6.10",
"webpack-bundle-analyzer": "^3.3.2"
}, },
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<form @submit.prevent="submit"> <form @submit.prevent="submit">
<div class="row"> <div class="row">
<div class="input-field col s12 l6"> <div class="input-field col s12 l6">
<input v-model="domain" id="domain" placeholder="mastodon.server" type="text" class="validate"> <input v-model="domain" id="domain" placeholder="mastodon.domain" type="text" class="validate">
<label class="active" for="domain">Mastodon domain</label> <label class="active" for="domain">Mastodon domain</label>
</div> </div>
</div> </div>
......
...@@ -4,7 +4,6 @@ import router from './router' ...@@ -4,7 +4,6 @@ import router from './router'
import store from './store' import store from './store'
import "materialize-css/dist/css/materialize.min.css" import "materialize-css/dist/css/materialize.min.css"
import "materialize-css/dist/js/materialize.min.js"
import "material-icons/iconfont/material-icons.css" import "material-icons/iconfont/material-icons.css"
Vue.config.productionTip = false Vue.config.productionTip = false
......
const Dotenv = require('dotenv-webpack'); const Dotenv = require('dotenv-webpack');
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
let plugins = [
// do not include moment.js locales since it's quite heavy
new Dotenv(),
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
]
if (process.env.BUNDLE_ANALYZE === '1') {
plugins.push(new BundleAnalyzerPlugin())
}
module.exports = { module.exports = {
configureWebpack: { configureWebpack: {
plugins: [ plugins: plugins
new Dotenv()
]
} }
} }
...@@ -8338,7 +8338,7 @@ webidl-conversions@^4.0.2: ...@@ -8338,7 +8338,7 @@ webidl-conversions@^4.0.2:
resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad" resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.2.tgz#a855980b1f0b6b359ba1d5d9fb39ae941faa63ad"
integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg== integrity sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==
webpack-bundle-analyzer@^3.3.0: webpack-bundle-analyzer@^3.3.0, webpack-bundle-analyzer@^3.3.2:
version "3.3.2" version "3.3.2"
resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.3.2.tgz#3da733a900f515914e729fcebcd4c40dde71fc6f" resolved "https://registry.yarnpkg.com/webpack-bundle-analyzer/-/webpack-bundle-analyzer-3.3.2.tgz#3da733a900f515914e729fcebcd4c40dde71fc6f"
integrity sha512-7qvJLPKB4rRWZGjVp5U1KEjwutbDHSKboAl0IfafnrdXMrgC0tOtZbQD6Rw0u4cmpgRN4O02Fc0t8eAT+FgGzA== integrity sha512-7qvJLPKB4rRWZGjVp5U1KEjwutbDHSKboAl0IfafnrdXMrgC0tOtZbQD6Rw0u4cmpgRN4O02Fc0t8eAT+FgGzA==
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment