Skip to content

Commit 288d544

Browse files
committed
Fix cordova
1 parent bb53fb0 commit 288d544

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webpack.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const cssRules = [
3939
*/
4040
module.exports = ({ production, server, extractCss, coverage, platform, config } = {}) => {
4141

42-
const PLATFORM = platform || 'browser';
42+
const PLATFORM = platform || 'browser'; // possibilities browser, mobile
4343
const CONFIG = config || 'development';
4444

4545
console.log('');
@@ -67,7 +67,7 @@ module.exports = ({ production, server, extractCss, coverage, platform, config }
6767
},
6868
output: {
6969
path: outDir,
70-
publicPath: baseUrl,
70+
publicPath: PLATFORM === 'mobile' ? '' : baseUrl,
7171
filename: production ? '[name].[chunkhash].bundle.js' : '[name].[hash].bundle.js',
7272
sourceMapFilename: production ? '[name].[chunkhash].bundle.map' : '[name].[hash].bundle.map',
7373
chunkFilename: production ? '[name].[chunkhash].chunk.js' : '[name].[hash].chunk.js',

0 commit comments

Comments
 (0)