Skip to content
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

The ejs file has a img element, look like url-loader don't loader it #275

Closed
zhangsanshi opened this issue Mar 30, 2016 · 2 comments
Closed

Comments

@zhangsanshi
Copy link

the plugins

new HtmlWebpackPlugin({
filename: './index.html',
publicPath: publicPath,
hash: true,
minify: {
removeComments: false,
collapseWhitespace: false
},
template: './index.tmpl.ejs'
})

the loaders

{
test: /.(png|jpeg|jpg|gif|svg)$/,
loaders: [
'url?limit=10000&name=imgs/[name].[ext]?[hash:7]',
'image-webpack?{bypassOnDebug:true,progressive:true, optimizationLevel: 7, interlaced: false, pngquant:{quality: "65-90", speed: 4}}'
]
},{
test: /.html$/,
loader: 'html-loader'
}

@jantimon
Copy link
Owner

Ejs has no image loader support - please try the https://github.com/emaphp/underscore-template-loader

@lock
Copy link

lock bot commented May 31, 2018

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants