chore: Bundle Stats / Webpack v4 (#1448)

* chore: Experiment with bundle size monitoring service

* chore: Ensure build runs on CI, move lint and flow before test

* chore: Upgrade Webpack v3 -> v4

* chore: Add webpack-cli
Remove unused dep
Move deps to dev

* Move babel deps to production

* Move babel deps to production
This commit is contained in:
Tom Moor
2020-08-12 13:16:10 -07:00
committed by GitHub
parent 0f41a04e49
commit 11f7e3a060
8 changed files with 806 additions and 690 deletions

View File

@ -2,6 +2,7 @@
const path = require('path');
const webpack = require('webpack');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const { RelativeCiAgentWebpackPlugin } = require('@relative-ci/agent');
require('dotenv').config({ silent: true });
@ -27,7 +28,6 @@ module.exports = {
cacheDirectory: true
}
},
{ test: /\.json$/, loader: 'json-loader' },
// inline base64 URLs for <=8k images, direct URLs for the rest
{ test: /\.(png|jpg|svg)$/, loader: 'url-loader' },
{
@ -55,6 +55,7 @@ module.exports = {
new HtmlWebpackPlugin({
template: 'server/static/index.html',
}),
new RelativeCiAgentWebpackPlugin(),
],
stats: {
assets: false,