Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
![Undernet](src/assets/images/un-logo.png?raw=true)
![Undernet](src/assets/images/github-logo.png?raw=true)

[![CircleCI](https://circleci.com/gh/geotrev/undernet/tree/master.svg?style=svg)](https://circleci.com/gh/geotrev/undernet/tree/master) [![devDependencies Status](https://david-dm.org/geotrev/undernet/dev-status.svg)](https://david-dm.org/geotrev/undernet?type=dev) [![npm version](https://badge.fury.io/js/undernet.svg)](https://badge.fury.io/js/undernet)

Expand Down
2 changes: 1 addition & 1 deletion config/webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const merge = require("webpack-merge")
const common = require("../webpack.common.js")

module.exports = merge(common, {
devtool: "inline-source-map",
devtool: "source-map",
devServer: {
contentBase: "/build/",
publicPath: "/",
Expand Down
20 changes: 11 additions & 9 deletions config/webpack.prod.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
const path = require("path")
const merge = require("webpack-merge")
const UglifyJSPlugin = require("uglifyjs-webpack-plugin")
const CompressionPlugin = require("compression-webpack-plugin")
const common = require("../webpack.common.js")
const CopyWebpackPlugin = require("copy-webpack-plugin")
const CleanWebpackPlugin = require("clean-webpack-plugin")

module.exports = merge(common, {
optimization: {
splitChunks: { chunks: "all" },
runtimeChunk: { name: "manifest" },
},
stats: { children: false },
plugins: [
// remove previous build assets
new CleanWebpackPlugin(["../build"], {
Expand All @@ -23,21 +27,19 @@ module.exports = merge(common, {
algorithm: "gzip",
}),

// copy app manifest one-to-one from public/ to build/
// copy app manifest + browserconfig from public/ to build/
new CopyWebpackPlugin([
{
from: "public/manifest.json",
to: "manifest.json",
cache: true,
},
{
from: "public/browserconfig.xml",
to: "browserconfig.xml",
cache: true,
},
]),
],
optimization: {
minimizer: [
new UglifyJSPlugin({
sourceMap: true,
}),
],
},
mode: "production",
})
Loading