1.0.1 • Published 4 years ago

templates-url-webpack v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

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')]
},