This commit is contained in:
mmacneil 2019-08-16 00:59:32 -03:00
parent 68365a96bc
commit 6289926be5
5 changed files with 1273 additions and 3855 deletions

File diff suppressed because one or more lines are too long

1265
src/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,6 +12,7 @@
"bulma": "^0.7.5",
"css-loader": "^3.2.0",
"mini-css-extract-plugin": "^0.8.0",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"node-sass": "^4.12.0",
"sass-loader": "^7.2.0",
"style-loader": "^1.0.0",

View File

@ -1,8 +1,14 @@
const path = require('path');
const MiniCssExtractPlugin = require('mini-css-extract-plugin')
const TerserJSPlugin = require('terser-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');
module.exports = {
entry: './src/index.js',
// https://webpack.js.org/plugins/mini-css-extract-plugin/#minimizing-for-production
optimization: {
minimizer: [new TerserJSPlugin({}), new OptimizeCSSAssetsPlugin({})],
},
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'js/bundle.js'