Skip to content

Commit

Permalink
proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
sorrycc committed Nov 10, 2017
1 parent 8a77444 commit 643f20e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"func-names": [0],
"arrow-parens": [0],
"space-before-function-paren": [0],
"no-useless-escape": [0]
"no-useless-escape": [0],
"object-curly-newline": [0]
},
"parserOptions": {
"ecmaFeatures": {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"@babel/core": "7.0.0-beta.31",
"@babel/polyfill": "7.0.0-beta.31",
"@babel/runtime": "7.0.0-beta.31",
"af-webpack": "^0.7.0",
"atool-monitor": "^0.4.3",
"autoprefixer": "^7.1.1",
"awesome-typescript-loader": "^3.1.3",
Expand Down
2 changes: 1 addition & 1 deletion src/getWebpackConfig.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default function(opts = {}) {
presets: [[babel, { browsers }], ...(config.extraBabelPresets || [])],
plugins: config.extraBabelPlugins || [],
},
// dev ģʽ��ʼ�ղ����� hash
// no hash in dev mode
hash: isDev ? false : config.hash,
enableCSSModules: !config.disableCSSModules,
define: opts.define,
Expand Down
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,6 @@ export default function(opts = {}) {
dev({
webpackConfig,
appName: 'your app',
proxy: config.proxy,
});
}

0 comments on commit 643f20e

Please sign in to comment.