🔧 Removes sourcecode banner from vue config

This commit is contained in:
Alicia Sykes 2021-08-19 20:38:45 +01:00
parent 94927cd880
commit 1cf4d61e88
3 changed files with 411 additions and 549 deletions

View File

@ -55,8 +55,7 @@
"sass": "^1.18.0",
"sass-loader": "^7.1.0",
"vue-svg-loader": "^0.16.0",
"vue-template-compiler": "^2.6.10",
"webpack": "4.0.0"
"vue-template-compiler": "^2.6.10"
},
"gitHooks": {
"pre-commit": "yarn lint"
@ -90,4 +89,4 @@
"> 1%",
"last 2 versions"
]
}
}

View File

@ -2,23 +2,10 @@
* Global config for the main Vue app. ES7 not supported here.
* See docs for all config options: https://cli.vuejs.org/config
*/
const webpack = require('webpack');
const ProgressBarPlugin = require('progress-bar-webpack-plugin');
// Get current version
const { version } = require('./package.json');
// Set the current version, for use within the app
process.env.VUE_APP_VERSION = version;
// Make banner text, for output files
const banner = (() => {
const now = new Date();
const line1 = `Dashy ${version}. Built at ${now.toLocaleTimeString()} on ${now.toLocaleDateString()}`;
const line2 = `Licensed under MIT - (C) Alicia Sykes ${now.getFullYear()}`;
const line3 = 'Code + docs: https://github.com/lissy93/dashy';
return `${line1}\n${line2}\n${line3}`;
})();
process.env.VUE_APP_VERSION = require('./package.json');
// Specify and export the main Vue app config
module.exports = {
@ -37,8 +24,6 @@ module.exports = {
plugins: [
// Display progress bar while building
new ProgressBarPlugin(),
// Insert banner into output chunks
new webpack.BannerPlugin({ banner }),
],
},
// Specify resources for PWA / mobile support

938
yarn.lock

File diff suppressed because it is too large Load Diff