From 9bb15fceab4f095686c9ec1a6e4bcec8cfc97d45 Mon Sep 17 00:00:00 2001 From: SKOLZ Date: Sat, 4 Sep 2021 16:04:43 -0300 Subject: [PATCH 1/2] generated base landing page and broke webpack. --- old_webpack.config.js | 199 + package-lock.json | 18494 +++++++++++++----------------- package.json | 7 +- src/assets/black-felt.png | Bin 0 -> 56237 bytes src/assets/brilliant.png | Bin 0 -> 76 bytes src/assets/github_icon.svg | 5 + src/assets/linkedin_icon.svg | 5 + src/assets/logo.svg | 7 + src/assets/profile_image.png | Bin 0 -> 159986 bytes src/assets/profile_image.svg | 83 + src/assets/twitter_icon.svg | 5 + src/assets/wolox_bg.png | Bin 24323 -> 0 bytes src/assets/wolox_logo.svg | 32 +- src/components/CustomCursor.vue | 152 + src/components/Example.vue | 20 - src/scss/application.scss | 6 + src/scss/base.scss | 32 +- src/scss/layout.scss | 142 + src/scss/margins.scss | 116 + src/scss/variables/_colors.scss | 7 +- src/views/about/about.js | 18 + src/views/about/about.pug | 19 + src/views/about/about.scss | 1 + src/views/index/index.js | 58 +- src/views/index/index.pug | 33 +- src/views/index/index.scss | 101 + webpack.config.js | 15 +- webpack.config.prod.js | 38 +- 28 files changed, 9111 insertions(+), 10484 deletions(-) create mode 100644 old_webpack.config.js create mode 100644 src/assets/black-felt.png create mode 100644 src/assets/brilliant.png create mode 100644 src/assets/github_icon.svg create mode 100644 src/assets/linkedin_icon.svg create mode 100644 src/assets/logo.svg create mode 100644 src/assets/profile_image.png create mode 100644 src/assets/profile_image.svg create mode 100644 src/assets/twitter_icon.svg delete mode 100644 src/assets/wolox_bg.png create mode 100644 src/components/CustomCursor.vue delete mode 100644 src/components/Example.vue create mode 100644 src/scss/layout.scss create mode 100644 src/scss/margins.scss create mode 100644 src/views/about/about.js create mode 100644 src/views/about/about.pug create mode 100644 src/views/about/about.scss diff --git a/old_webpack.config.js b/old_webpack.config.js new file mode 100644 index 0000000..6c0a33a --- /dev/null +++ b/old_webpack.config.js @@ -0,0 +1,199 @@ +'use strict' + +const webpack = require('webpack') +const path = require('path') +const CleanWebpackPlugin = require('clean-webpack-plugin') +const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin // eslint-disable-line prefer-destructuring +const DotEnv = require('dotenv-webpack') +const autoprefixer = require('autoprefixer') +const glob = require('glob') +const VueLoaderPlugin = require('vue-loader/lib/plugin') + +const rootFiles = ['index', 'serviceWorkerInstaller', 'vendor'] + +const entry = glob + .sync('./src/**/*.js') + .reduce( + (entries, entryFile) => Object.assign(entries, { [path.parse(entryFile).name]: entryFile }), + {} + ) + +module.exports = { + entry, + output: { + filename: (chunkFileName) => rootFiles.some(file => file === chunkFileName.chunk.name) ? '[name].js' : '[name]/[name].js', + path: path.resolve(__dirname, 'build') + }, + target: 'web', + mode: 'development', + devServer: { + contentBase: path.resolve(__dirname, 'src'), + watchContentBase: true, + compress: true, + port: 3000, + hot: true + }, + resolve: { + extensions: ['.js', '.vue'], + alias: { + vue: 'vue/dist/vue.js' + } + }, + module: { + rules: [ + { + test: /\.vue$/, + loader: 'vue-loader' + }, + { + enforce: 'pre', + test: /\.pug$/, + exclude: /node_modules/, + use: { + loader: 'vue-pug-lint-loader', + options: require('./.pug-lintrc.json') + } + }, + { + test: /\.pug$/, + oneOf: [ + // this applies to `