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

filePathRegex #35

Closed
wants to merge 1 commit into from
Closed

Conversation

noamshemesh
Copy link

Add file path regex parameter to enable template name modifications

@@ -4,7 +4,7 @@
"description": "Include AngularJS templates in the Webpack bundle and preload the template cache.",
"main": "index.js",
"scripts": {
"test": "./node_modules/webpack/bin/webpack.js --config=test/webpack.config.js"
"test": "webpack --config=test/webpack.config.js"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it' not reasonable to rely on the global installed webpack

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

totally agree, though ./node_modules/.bin is added automatically to PATH when running npm <command>.
https://docs.npmjs.com/misc/scripts#path

@jtomaszewski
Copy link

jtomaszewski commented Aug 30, 2016

Useful PR - it helps me f.e. to rename paths to my templates like templateName.html.haml or templateName.html.pug to templateName.html . It works for me, do you think its okay to merge?

@WearyMonkey
Copy link
Owner

Thanks for the PR!

The same effect can now be achieved with parameter interpolation in 2.0.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants