Skip to content

Commit ce025c4

Browse files
committed
Changed paths to relative instead of absolute in webpack config
1 parent f93fa39 commit ce025c4

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# react-webpack-template - Changelog
22

3+
## 1.5.3:
4+
5+
1. Asset paths are now relative (makes it easier to use bundles in subdirectories)
6+
37
## 1.5.2:
48

59
1. Updated dependencies to latests (babel-eslint, eslint, karma-mocha-reporter, normalize.css)

cfg/base.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = {
1717
output: {
1818
path: path.join(__dirname, '/../dist/assets'),
1919
filename: 'app.js',
20-
publicPath: defaultSettings.publicPath
20+
publicPath: `.${defaultSettings.publicPath}`
2121
},
2222
devServer: {
2323
contentBase: './src/',

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
<div id="app">APPLICATION CONTENT</div>
1212

1313
<script>__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__</script>
14-
<script type="text/javascript" src="assets/app.js"></script>
14+
<script type="text/javascript" src="./assets/app.js"></script>
1515
</body>
1616
</html>

0 commit comments

Comments
 (0)