on-internet
← Community

Cannot resolve load path in webpack

Stack Overflow ·

I try to migrate gulp+browserify to webpack and I have problems resolving path. Here is my project tree : /path/to/project ├── webpack.config.js └── www/static ├── build │ ├── js │ │ ├── main.js <-------│ Output wanted │ │ └── main.js.map <---│ ├── js │ ├── app.js │ ├── contact.js │ ├── device.js │ └── ... └── sass ├── main.scss └── partials ├── _helpers.scss ├── _mixins.scss └── _variables.scss And here is my config file : var path = require('path'); module.exports = { entry: { 'app': 'app.js' }, resolve: { modulesDirectories: ['www/static/js/', './'] }, output: { filename: './www/static/buil

Comments

Sign in or sign up to comment and upvote.

No comments yet.