Roots Discourse

Missing dist folder after running build

yea, well, I’m quite lost at deploying my theme with sage. running build doesn’t create a dist folder.

const mix = require('laravel-mix');

require('@tinypixelco/laravel-mix-wp-blocks');

/*

 |--------------------------------------------------------------------------

 | Mix Asset Management

 |--------------------------------------------------------------------------

 |

 | Mix provides a clean, fluent API for defining some Webpack build steps

 | for your Sage application. By default, we are compiling the Sass file

 | for your application, as well as bundling up your JS files.

 |

 */

mix

  .setPublicPath('./public')

  .browserSync('protocode.local');

mix

  .sass('resources/styles/app.scss', 'styles')

  .sass('resources/styles/editor.scss', 'styles')

  .options({

    processCssUrls: false,

    postCss: [require('tailwindcss')],

  });

mix

  .js('resources/scripts/app.js', 'scripts')

  .js('resources/scripts/customizer.js', 'scripts')

  .blocks('resources/scripts/editor.js', 'scripts')

  .autoload({ jquery: ['$', 'window.jQuery'] })

  .extract();

mix

  .copyDirectory('resources/images', 'public/images')

  .copyDirectory('resources/fonts', 'public/fonts');

mix

  .sourceMaps()

  .version();

Isn’t the output folder in Sage 10 public and not dist?

huh. doesn’t seem to me that the contents would make a theme, since it’s solely assets.

whoops. nevermind, thank you :slight_smile:
ugh… seems like I should have a look into trellis or bedrock…

When the answer solved your issue, please mark it as solution. :cat: