@webpack_ru
Webpack — русскоговорящее сообщество

Обсуждения webpack, лоадеров, плагинов и сборок Правила: http://bit.ly/our_etiquette См. также: @rollup_ru, @react_js, @vscode_ru, @macos_ru, @js_ru

974 members

Архив канала @webpack_ru 2 января 2018 г.

10:59:06 ДП
User 79707164
someone english?
10:59:54 ДП
User 212795634
User 79707164
someone english?
Wagwan?
11:00:08 ДП
11:01:10 ДП
User 212795634
User 79707164
wagwan?
What's the question dear sir?
11:01:20 ДП
11:01:56 ДП
User 79707164
ok, i have a express application in which there is a static admin frontend served
11:02:14 ДП
User 79707164
and i wanna bundle that frontend, which of course has dependencies
11:02:42 ДП
User 79707164
so i would bundle that frontend with all all that dependencies...
11:02:44 ДП
User 210440522
/buy@Axenia_Bot
11:03:22 ДП
User 79707164
when i call react-scripts build its bundeling two file which are ~3 mb
11:04:33 ДП
User 212795634
User 79707164
when i call react-scripts build its bundeling two file which are ~3 mb
Why would you use create react app?
11:04:54 ДП
User 212795634
Btw, what's problem?
11:05:04 ДП
User 79707164
didnt gave it a try yet, just wanted to ask if im doing something really really wrong if im including all the node modules in a frotnend
11:05:16 ДП
User 212795634
Which modules?
11:05:31 ДП
User 79707164
material-ui for example
11:06:11 ДП
User 212795634
You use yarn build or what?
11:06:24 ДП
User 79707164
regualr frontend deployment would be with a run yarn install on my server and run a normal sized index + js file
11:07:10 ДП
User 212795634
What's the command you type to build?
11:07:25 ДП
User 79707164
so the question is if thats a big no no to include all the mopdules in one file. since its an admin interface i guess perfomance is not the goal here
11:07:43 ДП
User 79707164
right now with react-scripts build but thats a black box
11:07:47 ДП
11:07:56 ДП
User 79707164
and for developing right now, with webpack
11:08:00 ДП
User 212795634
You build production or development mode?
11:08:16 ДП
User 79707164
building production
11:08:29 ДП
User 212795634
How exactly?
11:08:50 ДП
User 79707164
with that react scripts, but since its a black box with just two huge files coming out i guess its bundeling all the nod emodules
11:09:24 ДП
User 212795634
what's the command line args?
11:09:46 ДП
User 79707164
i would help me if you can give me a jugdge about bundeling node modules to a frontend js file
11:10:21 ДП
User 79707164
its an app initiated with https://github.com/facebookincubator/create-react-app
github.com/facebook/create-react-app
Create React apps with no build configuration. Contribute to facebook/create-react-app development by creating an account on GitHub.
11:10:39 ДП
User 212795634
And then what you do by steps?
11:13:32 ДП
User 79707164
im developing my app which is served statically by express, and since its nested beside an express app i want to change the outcome of that build folder, which is not really pssible by calling react-scripts build
11:14:14 ДП
User 212795634
User 79707164
im developing my app which is served statically by express, and since its nested beside an express app i want to change the outcome of that build folder, which is not really pssible by calling react-scripts build
And in browser your react dev tools icon looks blue or red?
11:15:04 ДП
11:15:25 ДП
User 79707164
but when im in dev, im serving that static files with webpack already
11:15:29 ДП
User 212795634
so evrything is ok
11:15:52 ДП
User 79707164
yep its working fine, im just want to change the build dir
11:16:10 ДП
User 79707164
which with webpack is cool, not so with react-scripts
11:16:17 ДП
User 212795634
you can run npm run eject
11:16:40 ДП
User 79707164
and simnce its a black box, but spoitting out huge files, i guess its bundelign node_modules + admin app
11:16:46 ДП
11:18:18 ДП
User 212795634
Node modules are ok
11:18:38 ДП
User 212795634
W/o dem I can't develop no shit
11:19:33 ДП
User 79707164
sure fact
11:20:26 ДП
User 79707164
i first try to configure a webpack.prod.js file which does a own version of react-scripts
11:20:42 ДП
User 79707164
thanks for the advice @itsjohncena
11:20:54 ДП
User 79707164
i meant cenator
11:21:38 ДП
User 212795634
No prob duh
12:14:05 ПП
User 79707164
si, claro
12:54:57 ПП
User 97102774
User 212795634
No prob duh
Духа нашёл. А ты дед?
12:55:47 ПП
User 212795634
User 97102774
Духа нашёл. А ты дед?
какого духа?
12:56:01 ПП
User 97102774
User 212795634
какого духа?
Ладно, не зашло.(
12:56:33 ПП
User 212795634
ну эт английский прекол, на русский не получится смешно перевести
02:36:50 ПП
User 111816761
как мне применить url-loader в scss?
02:45:42 ПП
User 134905826
User 111816761
как мне применить url-loader в scss?
url-loader работает ко всем ресурам указываным в секции test, scss не причем -- он работает раньше
02:47:50 ПП
User 134905826
но попробую угадать, к sass-loader нехватает css-loader -- он как раз резолвится url(...) внутри сыы
03:33:06 ПП
User 111816761
User 134905826
но попробую угадать, к sass-loader нехватает css-loader -- он как раз резолвится url(...) внутри сыы
css-loader тоже есть
06:09:27 ПП
User 250327307
Здравствуйте, коллеги. Можно ли обойтись без gulp, испульзуя лишь webpack (babel, stylus, pug)?
__
разобрался, The blurred line between runners and bundlers might be that bundlers can also do complex transformations or trans-pilations during their run-time, so they can do several things that task runners can do. In fact, between browserify and webpack there's probably around a hundred transformers that you can use to modify your source code. For comparison, there's at least 2000 gulp plugins listed on npm right now. So you can see that there are clear (hopefully... ;)) definitions of what works best for your application.
10:29:01 ПП
User 499005066
Здрасте. Можно ли юзать вебпак с бовером?
10:30:10 ПП
User 246047689
User 499005066
Здрасте. Можно ли юзать вебпак с бовером?
можно ли в мазерати поставить паровой двигатель? ну не знаю
10:42:40 ПП
User 499005066
User 246047689
можно ли в мазерати поставить паровой двигатель? ну не знаю
?
10:43:08 ПП
User 189706357
У него плохая аналогия получилась