Skip to content

Commit

Permalink
Merge pull request #244 from moul/dev/moul/small-web-fixes
Browse files Browse the repository at this point in the history
chore: fix web dev
  • Loading branch information
moul authored Feb 21, 2020
2 parents b281a3c + 484ac55 commit 786529c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions web/.env.dev
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
NODE_ENV=development
__DEV__=true
#API_URL=http://localhost:8000/api
API_URL=/api
API_URL=https://depviz-demo.moul.io/api
4 changes: 2 additions & 2 deletions web/src/components/menu/Menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ const Menu = () => {
<option value="circle">circle</option>
<option value="cose">cose</option>
<option value="breadthfirst">breadthfirst</option>
<option value="concetric">concetric</option>
<option value="concentric">concentric</option>
<option value="grid">grid</option>
<option value="random">random</option>
<option value="cola">cola</option>
<option value="elk">elk</option>
{/*<option value="elk">elk</option>*/}

</select>
</div>
Expand Down
4 changes: 1 addition & 3 deletions web/webpack.config.dev.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import path from 'path';
import HardSourceWebpackPlugin from 'hard-source-webpack-plugin';
import Dotenv from "dotenv-webpack";

export default {
Expand Down Expand Up @@ -29,9 +28,8 @@ export default {
},
plugins: [
new Dotenv({
path: './.env'
path: './.env.dev'
}),
new HardSourceWebpackPlugin(),
new webpack.HotModuleReplacementPlugin(),
new webpack.NoEmitOnErrorsPlugin(),
new HtmlWebpackPlugin({ // Create HTML file that includes references to bundled CSS and JS.
Expand Down

0 comments on commit 786529c

Please sign in to comment.