Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Hutten committed Jan 19, 2021
1 parent ca2b6a2 commit 72394b6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 32 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ yarn-error.log*
lerna-debug.log*

dist/*
!dist/index.html

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
Expand Down
9 changes: 0 additions & 9 deletions dist/index.html

This file was deleted.

44 changes: 22 additions & 22 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@
const webpack = require('webpack');
const path = require('path');
const HtmlWebpackPlugin = require('html-webpack-plugin');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
const webpack = require("webpack");
const path = require("path");
const HtmlWebpackPlugin = require("html-webpack-plugin");
const MonacoWebpackPlugin = require("monaco-editor-webpack-plugin");

const config = {
entry: ['babel-polyfill', './src/index.js'],
entry: ["babel-polyfill", "./src/index.js"],
output: {
path: path.resolve(__dirname, 'dist'),
filename: '[name].[contenthash].js'
path: path.resolve(__dirname, "dist"),
filename: "[name].[contenthash].js"
},
watch: true,
module: {
rules: [
{
test: /\.js$/,
use: 'babel-loader',
use: "babel-loader",
exclude: /node_modules/
},
{
test: /\.css$/,
use: [
'style-loader',
"style-loader",
{
loader: 'css-loader',
loader: "css-loader",
options: {
importLoaders: 1
}
},
'postcss-loader'
"postcss-loader"
]
},
{
test: /\.(woff(2)?|ttf|eot)(\?v=\d+\.\d+\.\d+)?$/,
use: [
{
loader: 'file-loader',
loader: "file-loader",
options: {
name: '[name].[ext]',
outputPath: 'fonts/'
name: "[name].[ext]",
outputPath: "fonts/"
}
}
]
Expand All @@ -46,24 +46,24 @@ const config = {
},
plugins: [
new HtmlWebpackPlugin({
appMountId: 'app',
filename: 'index.html',
template: 'index.html'
appMountId: "app",
filename: "index.html",
template: "index.html"
}),
new MonacoWebpackPlugin(),
new MonacoWebpackPlugin()
],
optimization: {
runtimeChunk: 'single',
runtimeChunk: "single",
splitChunks: {
cacheGroups: {
vendor: {
test: /[\\/]node_modules[\\/]/,
name: 'vendors',
chunks: 'all'
name: "vendors",
chunks: "all"
}
}
}
}
};

module.exports = config;
module.exports = config;

0 comments on commit 72394b6

Please sign in to comment.