Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //example using gulp with webpack
- var path = require('path')
- resolve: {
- alias: {
- //if you prefix all js imports with app this will fix any issues from importating
- js: path.join(__dirname, "src/js")
- },
- }
- //then you would use this to require
- var myfie = require('js/somefolder/myfile')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement