This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Module build failed: Error: dyld: Library not loaded: /usr/local/opt/libpng/lib/libpng16.16.dylib #60
Labels
Comments
Can you post your webpack config? |
Duplicate of #51 |
const htmlWebpackPlugin = require('html-webpack-plugin');
var CleanWebpackPlugin = require('clean-webpack-plugin');
var path = require('path');
module.exports = {
entry: './src',
output: {
path: 'dist',
filename: 'bundle.[hash].js'
},
module: {
loaders: [{
test: /.*\.(gif|png|jpe?g|svg)$/i,
exclude: /node_modules/,
loaders: [
'file?hash=sha512&digest=hex&name=images/[name].[hash:8].[ext]',
'image-webpack'
]
}, {
test: /\.css$/,
exclude: /node_modules/,
loader: 'style!css'
}]
},
imageWebpackLoader: {
mozjpeg: {
quality: 65
},
pngquant: {
quality: "65-90",
speed: 4
}
},
plugins: [
new CleanWebpackPlugin('dist', {
root: __dirname,
verbose: true,
dry: false
}),
new htmlWebpackPlugin({
template: './src/index.html'
})
]
} |
Just need update it with
|
To solve the problem I applied the following workaround (that is not optimal, but it is doing the job).
that turned out to be under
Note that before step 2, you may need to create the folders
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
full error:
it seems not support
jpg
image?The text was updated successfully, but these errors were encountered: