lean / phaser-es6-webpack

A bootstrap project for create games with Phaser + ES6 + Webpack.
MIT License
1.28k stars 314 forks source link

Webpack alias to relative paths #71

Closed fabioars closed 6 years ago

fabioars commented 6 years ago

Hello Lean,

I'd like to make another contribution, thinking how to make larger projects we have a issue in the JavaScript module system, that is about relative paths, nobody like paths like this:

import lang from '../../../../lang'

So I decided to do some Webpack alias, something like:

import lang from '@lang'

Feel free to disagree this approach and change whatever you want.

lean commented 6 years ago

Hi @fabioars. Your did a cool change but I think that it is very optionate. I don't think that most people use alias. Anyway, thanks for the contribution

fabioars commented 6 years ago

Ok @lean, Thanks for the feedback.