From b72f20c996f01819f484b4e52a47ad35f66a805a Mon Sep 17 00:00:00 2001 From: Hobofan Date: Mon, 12 Sep 2016 14:24:23 +0200 Subject: [PATCH] make the project more publishable to IPFS; #7 --- build/webpack.config.js | 14 +++++++------- config/environments.js | 2 +- config/index.js | 2 +- src/components/Wikidata/Claim.js | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build/webpack.config.js b/build/webpack.config.js index 76ca471..9156947 100644 --- a/build/webpack.config.js +++ b/build/webpack.config.js @@ -72,13 +72,13 @@ if (__DEV__) { webpackConfig.plugins.push( new webpack.optimize.OccurrenceOrderPlugin(), new webpack.optimize.DedupePlugin(), - new webpack.optimize.UglifyJsPlugin({ - compress: { - unused: true, - dead_code: true, - warnings: false - } - }) + // new webpack.optimize.UglifyJsPlugin({ + // compress: { + // unused: true, + // dead_code: true, + // warnings: false + // } + // }) ) } diff --git a/config/environments.js b/config/environments.js index 9bef69f..d31fdd6 100644 --- a/config/environments.js +++ b/config/environments.js @@ -23,7 +23,7 @@ export default { // Overrides when NODE_ENV === 'production' // ====================================================== production: (config) => ({ - compiler_public_path: '/', + compiler_public_path: '', compiler_fail_on_warning: false, compiler_hash_type: 'chunkhash', compiler_devtool: null, diff --git a/config/index.js b/config/index.js index 70fe44d..bf842b5 100644 --- a/config/index.js +++ b/config/index.js @@ -37,7 +37,7 @@ const config = { compiler_hash_type : 'hash', compiler_fail_on_warning : false, compiler_quiet : false, - compiler_public_path : '/', + compiler_public_path : '', compiler_stats : { chunks : false, chunkModules : false, diff --git a/src/components/Wikidata/Claim.js b/src/components/Wikidata/Claim.js index 4bb675a..ab4643f 100644 --- a/src/components/Wikidata/Claim.js +++ b/src/components/Wikidata/Claim.js @@ -8,7 +8,7 @@ import LinearProgress from 'material-ui/LinearProgress'; // import classes from './Claim.scss' -export class Claim extends React.Component { +class Claim extends React.Component { render() { const entities = this.props.entities; const main_property = this.props.claims[0].mainsnak.property;