Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webpack + Yii2 #160

Open
resurtm opened this issue Dec 13, 2016 · 6 comments
Open

Webpack + Yii2 #160

resurtm opened this issue Dec 13, 2016 · 6 comments
Labels

Comments

@resurtm
Copy link

resurtm commented Dec 13, 2016

Would be nice to show people and potential users on how Yii2 could be used in conjunction with Webpack. Webpack is considered as much better way of the application assets handling compared to Yii2 native assets manager, Gulp, Grunt, etc. I'm working on this. Would be done in this or next week. Just created a dedicated issue for my future PR. Additional feature requests and advises are welcome, if there are any of them. ;-)

Directly or indirectly related: #105, #116, #107.

@samdark
Copy link
Owner

samdark commented Dec 13, 2016

Great! Looking forward to it.

@ihipop
Copy link

ihipop commented Mar 7, 2017

any update?

@samdark
Copy link
Owner

samdark commented Mar 7, 2017

No since I'm still had no chance to really use webpack.

@antonmarin
Copy link

https://github.com/rkit/bootstrap-yii2
There is the project with webpack integration

@naffiq
Copy link

naffiq commented Mar 17, 2017

@antonmarin great!
The only thing that it uses webpack 1.x, which is already deprecated. And bower-webpack-plugin hasn't been updated for webpack 2.x and extract-text-webpack-plugin still has a lot of bugs for the second version.
I think it's better to wait for updates for those packages (at least for extract-text), before adding webpack guides to cookbook.

@pgaultier
Copy link

Hi, perhaps you can have a look at the thin wrapper I created: https://github.com/pgaultier/yii2-webpack
I created it with typescript in mind but you can tune the webpack.config.js to fit your needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants