Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
wanda-ball
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9a28c9a5
authored
Jun 04, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
0547cc53
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
build/build.js
+0
-1
build/webpack.prod.conf.js
+6
-1
src/modules/js/api.js
+1
-1
No files found.
build/build.js
View file @
9a28c9a5
...
@@ -9,7 +9,6 @@ const chalk = require('chalk')
...
@@ -9,7 +9,6 @@ const chalk = require('chalk')
const
webpack
=
require
(
'webpack'
)
const
webpack
=
require
(
'webpack'
)
const
config
=
require
(
'../config'
)
const
config
=
require
(
'../config'
)
const
webpackConfig
=
require
(
'./webpack.prod.conf'
)
const
webpackConfig
=
require
(
'./webpack.prod.conf'
)
console
.
log
(
process
.
env
.
BUILD_ENV
)
const
spinner
=
ora
(
'building for production...'
)
const
spinner
=
ora
(
'building for production...'
)
spinner
.
start
()
spinner
.
start
()
...
...
build/webpack.prod.conf.js
View file @
9a28c9a5
...
@@ -11,7 +11,12 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
...
@@ -11,7 +11,12 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin')
const
OptimizeCSSPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
)
const
OptimizeCSSPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
)
const
UglifyJsPlugin
=
require
(
'uglifyjs-webpack-plugin'
)
const
UglifyJsPlugin
=
require
(
'uglifyjs-webpack-plugin'
)
const
env
=
require
(
'../config/prod.env'
)
let
env
=
require
(
'../config/prod.env'
)
console
.
log
(
process
.
env
.
BUILD_ENV
)
if
(
process
.
env
.
BUILD_ENV
)
{
env
.
BUILD_ENV
=
JSON
.
stringify
(
process
.
env
.
BUILD_ENV
)
}
console
.
log
(
env
,
'env'
)
console
.
log
(
env
,
'env'
)
const
webpackConfig
=
merge
(
baseWebpackConfig
,
{
const
webpackConfig
=
merge
(
baseWebpackConfig
,
{
module
:
{
module
:
{
...
...
src/modules/js/api.js
View file @
9a28c9a5
...
@@ -21,7 +21,7 @@ const weburl = 'https://wanda-h5.bdideal.com'
...
@@ -21,7 +21,7 @@ const weburl = 'https://wanda-h5.bdideal.com'
// var url = mode === 'development' ? 'http://web-comment.canskj.cn' : 'http://wanda-qj.iyunfish.com'
// var url = mode === 'development' ? 'http://web-comment.canskj.cn' : 'http://wanda-qj.iyunfish.com'
// 测试地址
// 测试地址
var
url
=
mode
===
'development'
?
'https://wanda-video-tapi.bdideal.com'
:
BUILD_ENV
===
'dev'
?
'https://wanda-video-tapi.bdideal.com'
:
'https://wanda-video-api.bdideal.com'
var
url
=
mode
===
'development'
?
'https://wanda-video-tapi.bdideal.com'
:
BUILD_ENV
===
'dev'
?
'https://wanda-video-tapi.bdideal.com'
:
'https://wanda-video-api.bdideal.com'
console
.
log
(
'mode'
,
mode
,
url
)
console
.
log
(
'mode'
,
mode
,
url
,
BUILD_ENV
,
BUILD_ENV
===
'dev'
)
// api地址
// api地址
var
h5Url
=
mode
===
'development'
?
'/video-test'
:
BUILD_ENV
===
'dev'
?
'/video-test'
:
'/video'
var
h5Url
=
mode
===
'development'
?
'/video-test'
:
BUILD_ENV
===
'dev'
?
'/video-test'
:
'/video'
var
server
=
url
;
var
server
=
url
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment