Skip to content

Commit

Permalink
tweak webpack paths, dev/production modes
Browse files Browse the repository at this point in the history
  • Loading branch information
Williangalvani committed Sep 2, 2021
1 parent b4fba4f commit 121ecf2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 43 deletions.
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

3 changes: 3 additions & 0 deletions build/webpack.dev.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'use strict'

process.env.NODE_ENV = 'development'

const utils = require('./utils')
const webpack = require('webpack')
const config = require('../config')
Expand Down
3 changes: 3 additions & 0 deletions build/webpack.prod.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
'use strict'

process.env.NODE_ENV = 'production'

const path = require('path')
const utils = require('./utils')
const webpack = require('webpack')
Expand Down
4 changes: 2 additions & 2 deletions config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = {

// Paths
assetsSubDirectory: 'static',
assetsPublicPath: './',
assetsPublicPath: '/',
proxyTable: {
"/upload/*":{
target:"http://localhost:8001/upload",
Expand Down Expand Up @@ -66,7 +66,7 @@ module.exports = {
// Paths
assetsRoot: path.resolve(__dirname, '../dist'),
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: './',

/**
* Source Maps
Expand Down

0 comments on commit 121ecf2

Please sign in to comment.