node.js - Nodemon alias requiring modules like webpack -


webpack offers pretty powerful tool alias requiring modules since moved isomorphic stack, express loading of webpack related world , aliasing breaking (erroring server).

is there way, preferably via gulp, alias folder structure?

i'd love this: import applicationstore './client/scripts/stores/applicationstore'; import applicationstore 'stores/applicationstore';

you can add directories module search path resolve.root option.

resolve: {   root: [`${__dirname}/client/scripts`], } 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -