Skip to content
This repository has been archived by the owner on Mar 24, 2023. It is now read-only.

Commit

Permalink
Remove unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Junya committed May 28, 2019
1 parent 17ebc33 commit 2c0c502
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 16 deletions.
1 change: 0 additions & 1 deletion web/init/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"test": "node scripts/test.js --env=jsdom"
},
"dependencies": {
"@babel/runtime": "^7.3.4",
"brace": "^0.11.1",
"classnames": "^2.2.6",
"history": "^4.7.2",
Expand Down
6 changes: 3 additions & 3 deletions web/init/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const DashboardPlugin = require("webpack-dashboard/plugin");
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
const OptimizeCSSAssetsPlugin = require('optimize-css-assets-webpack-plugin');

const basePlugins = [
new MiniCssExtractPlugin({
filename: "styles.css"
Expand All @@ -14,20 +15,19 @@ module.exports = (env, { mode }) => {
let plugins = [...basePlugins];
const isProduction = mode === "production";
console.log(
'BUILDING IN',
'BUILD MODE:',
isProduction
? 'PRODUCTION'
: 'DEVELOPMENT'
);
if (isProduction) {
if (process.env.SHIP_SHOW_BUNDLE_ANALYZER) {
plugins = plugins.concat([new BundleAnalyzerPlugin()]);
}

if (process.env.DASHBOARD) {
plugins = plugins.concat([new DashboardPlugin()])
}


let optimizations = {};
if (isProduction) {
optimizations = {
Expand Down
12 changes: 0 additions & 12 deletions web/init/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -674,13 +674,6 @@
resolved "https://registry.yarnpkg.com/@babel/preset-stage-0/-/preset-stage-0-7.0.0.tgz#999aaec79ee8f0a763042c68c06539c97c6e0646"
integrity sha512-FBMd0IiARPtH5aaOFUVki6evHiJQiY0pFy7fizyRF7dtwc+el3nwpzvhb9qBNzceG1OIJModG1xpE0DDFjPXwA==

"@babel/runtime@^7.3.4":
version "7.3.4"
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.3.4.tgz#73d12ba819e365fcf7fd152aed56d6df97d21c83"
integrity sha512-IvfvnMdSaLBateu0jfsYIpZTxAc2cKEXEMiezGGN75QcBcecDUKd3PgLAncT0oOgxKy8dd8hrJKj9MfzgfZd6g==
dependencies:
regenerator-runtime "^0.12.0"

"@babel/template@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.0.0.tgz#c2bc9870405959c89a9c814376a2ecb247838c80"
Expand Down Expand Up @@ -10008,11 +10001,6 @@ regenerator-runtime@^0.11.0:
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==

regenerator-runtime@^0.12.0:
version "0.12.1"
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.12.1.tgz#fa1a71544764c036f8c49b13a08b2594c9f8a0de"
integrity sha512-odxIc1/vDlo4iZcfXqRYFj0vpXFNoGdKMAUieAlFYO6m/nl5e9KR/beGf41z4a1FI+aQgtjhuaSlDxQ0hmkrHg==

regenerator-transform@^0.10.0:
version "0.10.1"
resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.10.1.tgz#1e4996837231da8b7f3cf4114d71b5691a0680dd"
Expand Down

0 comments on commit 2c0c502

Please sign in to comment.