1.0.1 • Published 6 years ago
template-url-webpack v1.0.1
Webpack loader
Template Url
Replace object url to require
From
{
templateUrl: './index.html'
}
To
{
templateUrl: require('./index.html')
}
webpack
install: npm i -D template-url-webpack
{
test: /\.js$/,
loader: 'template-url-webpack',
exclude: ['node_modules'],
include: [path.resolve(__dirname, 'src')]
},