-
-
Notifications
You must be signed in to change notification settings - Fork 204
Closed
Description
Webpack version:
3.6
HTML-Loader version:
0.5.5
Please tell us about your environment:
Windows 10
Current behavior:
i do this
{
test: /\.(html)$/,
include: [path.resolve(__dirname, 'src', 'html')],
use: [
{
loader: 'html-loader',
options: {
exportAsEs6Default: 'es6',
minimize: true,
collapseWhitespace: true,
}
},
],
},
}
then
import Table from './html/table.html';
and have
export default "<table> <tr> <td>1</td> <td>2</td> </tr> </table>";"
in the my Table variable.
Expected/desired behavior:
I cant use it. How i get pure html string without export default="";
-
Browser: all
-
Language: ES6/7]
Metadata
Metadata
Assignees
Labels
No labels