This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

rob56798
rob56798

Hi, so I've inherited a number of Octobercms sites previously built by another developer. I've not used October before so I was hoping someone here could clarify something for me.

I've got a theme dir which looks like it was originally setup to build js/css out via Webpack, I've got a webpack.mix.js file with the following config

mix
  .setPublicPath(`./${themePath}/assets/`)
  .js(`${themePath}/src/js/app.js`, `public/js/app.js`)
  .sass(
    `${themePath}/src/sass/theme.scss`,
    `${themePath}/assets/public/css/theme.${
      mix.inProduction() ? "css" : "less"
    }`
  )
  .tailwind()
  .version()
  .copy(`./webpack.mix.js`, `./${themePath}/webpack.mix.js`)
  .disableNotifications();

If I'm reading that correctly, there ought to be source js and scss files in the theme src dir, problem is the src dir in the theme is completely empty.

There is an outputted app.js in themename/assets/public/js/app.js with the first line of...

/******/ (function(modules) { // webpackBootstrap

So, I think this theme was built with webpack at some point in the past but the source js/css files it was built from are no longer present?

Am I correct or am I misunderstanding?

Last updated

daftspunky
daftspunky

At first glance, it's possible you are viewing a public/compiled version of the theme, you should request the source files from the previous developer.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.