craft3-webpack5-tailwind2-boilerplate icon indicating copy to clipboard operation
craft3-webpack5-tailwind2-boilerplate copied to clipboard

Js and Css not building after running yarn dev

Open brianbier opened this issue 3 years ago • 2 comments

Hi I've followed all the steps and ran yarn dev but the css and js files are not genarated. I remove the tailwind settings which purges unused css but this is what i currently get in errors

asset js/app.bundle.js 91.8 KiB [emitted] (name: app) 1 related asset
asset manifest.json 292 bytes [emitted]
Entrypoint app 1.04 MiB (998 KiB) = js/chunk-vendors.bundle.js 969 KiB js/app.bundle.js 91.8 KiB 2 auxiliary assets
runtime modules 28.4 KiB 14 modules
modules by path ./node_modules/core-js/ 442 KiB 426 modules
modules by path ./node_modules/webpack-dev-server/client/ 52.7 KiB 12 modules
modules by path ./node_modules/style-loader/dist/runtime/*.js 5.75 KiB 6 modules
modules by path ./node_modules/webpack/hot/*.js 5.23 KiB 4 modules
modules by path ./node_modules/html-entities/lib/*.js 81.3 KiB 4 modules
modules by path ./src/ 37.1 KiB 3 modules
modules by path ./node_modules/querystring/*.js 4.51 KiB 3 modules
modules by path ./node_modules/url/*.js 23.1 KiB
  ./node_modules/url/url.js 22.8 KiB [built] [code generated]
  ./node_modules/url/util.js 314 bytes [built] [code generated]
modules by path ./node_modules/css-loader/dist/runtime/*.js 2.94 KiB
  ./node_modules/css-loader/dist/runtime/sourceMaps.js 688 bytes [built] [code generated]
  ./node_modules/css-loader/dist/runtime/api.js 2.26 KiB [built] [code generated]
4 modules
webpack 5.61.0 compiled successfully in 761 ms

brianbier avatar Dec 07 '21 03:12 brianbier

I'm using the twigpack but twigpack is not loading the actual css files

{{ craft.twigpack.includeCssModule("app.css") }}

This is because the dist/ folder only has to file manifest.json and stats.json.

brianbier avatar Dec 07 '21 15:12 brianbier

I have the same problem. Did you resolve this @brianbier?

Dean-Wilson avatar Aug 18 '22 05:08 Dean-Wilson