Обновление: path: path.resolve(__dirname, '/public/assets/js'),
, кажется, сделать файл в корневом диске?Вместо моей папки laravel.
По сути, неправильно то, что он не создает файл bundle.js
.
Я не хочу использовать микс Laravel, я хочу изучить веб-пакетпуть первый.Микс Laravel, похоже, много инкапсулирует, что мне не нужнопроблема?
Hash: 4608a06553c30aeacdb5
Version: webpack 4.29.6
Time: 1037ms
Built at: 08/04/2019 09:39:50
Asset Size Chunks Chunk Names
bundle.js 344 KiB 0 [emitted] [big] main
Entrypoint main [big] = bundle.js
[1] (webpack)/buildin/global.js 472 bytes {0} [built]
[12] ./resources/js/app.js 1.17 KiB {0} [built]
[13] ./resources/js/bootstrap.js 1.7 KiB {0} [built]
[15] (webpack)/buildin/module.js 497 bytes {0} [built]
+ 35 hidden modules
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets:
bundle.js (344 KiB)
WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
main (344 KiB)
bundle.js
WARNING in webpack performance recommendations:
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/
Разве плохо иметь такой большой веб-пакет?Это тот, который пришел с Laravel, так что, если он "слишком большой", я вроде как не могу добавить что-нибудь еще?Я надеюсь, что это конфиг, и это неплохо.