At plusarchive.com npm(Yarn) and webpack 2.x are used instead of composer-asset-plugin and yii\web\AssetManager
. The project was recently opensourced and could serve as an example.
May 5, 2017
At plusarchive.com npm(Yarn) and webpack 2.x are used instead of composer-asset-plugin and yii\web\AssetManager
. The project was recently opensourced and could serve as an example.
Hello @jamband Would you care to give a bit more insight of how you have done, what where the advantages and pitfalls you have found on this path?
I must say composer-asset-plugin is a real nightmare. I know Yii2.1 will drop composer-asset-plugin mess (thanks) but this release has no date announced and in the meantime I'm looking for alternatives (and Yii2.1 which has no release date announce).
Hello @gwelr
I wrote an article about Yii + webpack. (Although it is Japanese). It may be useful.
http://qiita.com/livejam_db/items/96a8034e6b4e57564390
Although webpack is convenient, I think it is complicated and not perfect yet. However, since we are planning to implement the front end with React or Vue.js in the future, we have no choice but to use it. So I decided to use webpack as preparation.
The repository has changed. new: https://github.com/jamband/admin.plusarchive.com