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