-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(beidou-webpack): remove hash name while not using module in css l…
…oader, add client alias
- Loading branch information
Showing
14 changed files
with
70 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,44 @@ | ||
'use strict'; | ||
|
||
exports.webpack = { | ||
// keep this key name sync with webpack.common.js reservedKey | ||
custom: { | ||
// configPath: 'path/to/webpack/config/file', | ||
}, | ||
output: { | ||
path: './build', | ||
filename: '[name].js?[hash]', | ||
chunkFilename: '[name].js', | ||
publicPath: '/build/', | ||
}, | ||
const path = require('path'); | ||
|
||
resolve: { | ||
extensions: ['.json', '.js', '.jsx'], | ||
}, | ||
module.exports = appInfo => ({ | ||
webpack: { | ||
// keep this key name sync with webpack.common.js reservedKey | ||
custom: { | ||
// configPath: 'path/to/webpack/config/file', | ||
}, | ||
output: { | ||
path: './build', | ||
filename: '[name].js?[hash]', | ||
chunkFilename: '[name].js', | ||
publicPath: '/build/', | ||
}, | ||
|
||
devServer: { | ||
contentBase: false, | ||
port: 6002, | ||
noInfo: true, | ||
quiet: false, | ||
clientLogLevel: 'warning', | ||
lazy: false, | ||
watchOptions: { | ||
aggregateTimeout: 300, | ||
resolve: { | ||
extensions: ['.json', '.js', '.jsx'], | ||
alias: { | ||
client: path.join(appInfo.baseDir, 'client'), | ||
}, | ||
}, | ||
headers: { 'X-Custom-Header': 'yes' }, | ||
stats: { | ||
colors: true, | ||
chunks: false, | ||
|
||
devServer: { | ||
contentBase: false, | ||
port: 6002, | ||
noInfo: true, | ||
quiet: false, | ||
clientLogLevel: 'warning', | ||
lazy: false, | ||
watchOptions: { | ||
aggregateTimeout: 300, | ||
}, | ||
headers: { 'X-Custom-Header': 'yes' }, | ||
stats: { | ||
colors: true, | ||
chunks: false, | ||
}, | ||
publicPath: '/build/', | ||
hot: true, | ||
}, | ||
publicPath: '/build/', | ||
hot: true, | ||
}, | ||
}; | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters