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');




 | 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.







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

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


    processCssUrls: false,

    postCss: [require('tailwindcss')],



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

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

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

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



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

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




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: