-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webpack4 migrate #958
Webpack4 migrate #958
Changes from 1 commit
86d87e8
6b1c10c
2909461
2d6acd4
c7aab7d
a28c898
4d3204f
0545025
03c2acf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,10 @@ module.exports = { | |
assets: path.resolve(CURRENT_WORKING_DIR, 'public', 'assets'), | ||
compiled: path.resolve(CURRENT_WORKING_DIR, 'compiled'), | ||
public: '/assets/', // use absolute path for css-loader? | ||
prod_public: '/', // use absolute path for css-loader? | ||
prod_public: '/', // public path for production build should be like this | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for adding the additional info. I do have a feeling that this is actually a problem with the rendering and/or webpack asset serving in dev mode (hmr etc9 and not the output parameter, I will take a look. Also, If we keep these, let's try to inline the comments, something like: public: '/assets/',
prod_public: '/', // prod assets area already prefixed with '/assets/' |
||
/* | ||
* In prod with public: '/assets/' the app tries to get the js and css from '/assets//assets/*' . Just changed the prod publicPath for '/'. | ||
*/ | ||
modules: path.resolve(CURRENT_WORKING_DIR, 'node_modules') | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert this ;)