mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-06-27 17:16:57 +08:00
Changed paths to relative instead of absolute in webpack config
This commit is contained in:
@@ -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
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user