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
Post a Comment