Changed paths to relative instead of absolute in webpack config

This commit is contained in:
Chris
2016-03-29 13:59:01 +02:00
parent f93fa39ebb
commit ce025c4116
3 changed files with 6 additions and 2 deletions
+4
View File
@@ -1,5 +1,9 @@
# react-webpack-template - Changelog
## 1.5.3:
1. Asset paths are now relative (makes it easier to use bundles in subdirectories)
## 1.5.2:
1. Updated dependencies to latests (babel-eslint, eslint, karma-mocha-reporter, normalize.css)
+1 -1
View File
@@ -17,7 +17,7 @@ module.exports = {
output: {
path: path.join(__dirname, '/../dist/assets'),
filename: 'app.js',
publicPath: defaultSettings.publicPath
publicPath: `.${defaultSettings.publicPath}`
},
devServer: {
contentBase: './src/',
+1 -1
View File
@@ -11,6 +11,6 @@
<div id="app">APPLICATION CONTENT</div>
<script>__REACT_DEVTOOLS_GLOBAL_HOOK__ = parent.__REACT_DEVTOOLS_GLOBAL_HOOK__</script>
<script type="text/javascript" src="assets/app.js"></script>
<script type="text/javascript" src="./assets/app.js"></script>
</body>
</html>