Skip to content

Commit

Permalink
Don’t hard-code publicPath
Browse files Browse the repository at this point in the history
Otherwise we can’t build as instructed in the README file
  • Loading branch information
alfonsomunozpomer committed Jun 7, 2018
1 parent befd742 commit 2623fa4
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ module.exports = {
output: {
library: `[name]`,
filename: `[name].bundle.js`,
// Must match module.exports.serve.dev.publicPath or the demo page will show broken images
publicPath: `/dist/`
},

optimization: {
Expand Down Expand Up @@ -44,6 +42,19 @@ module.exports = {

module: {
rules: [
{
test: /\.css$/,
use: [
`style-loader`,
{
loader: 'css-loader',
options: {
modules: true,
localIdentName: '[name]__[local]___[hash:base64:5]'
}
}
]
},
{
test: /\.(jpe?g|png|gif)$/i,
use: [
Expand Down

0 comments on commit 2623fa4

Please sign in to comment.