Skip to content
This repository has been archived by the owner on Sep 15, 2023. It is now read-only.

Compilation not occurring upon change in html sub directory #544

Open
jakefleming opened this issue Feb 15, 2018 · 9 comments
Open

Compilation not occurring upon change in html sub directory #544

jakefleming opened this issue Feb 15, 2018 · 9 comments
Assignees

Comments

@jakefleming
Copy link

I've got a sub directory: "src/html/apps/"

When a change is made in the html file within the "apps" directory, browsersync acts like it detected the change and refreshes, but the changes have not actually been compiled and built.

For example, if I change some text from "foo" to "bar" the page will refresh like the change was detected...so you'd expect to now see "bar" where "foo" used to be, but "foo" is still there. The changes are not reflected.

Changes at the root level of the html folder still work as expected.

Happy to provide more information!

screen shot 2018-02-15 at 11 30 26 am

@xavianaxw
Copy link

Did you ever figure out the issue?

@olets
Copy link
Contributor

olets commented May 28, 2019

Sorry for keeping you waiting so so long @jakefleming!

@xavianaxw are you having this problem as well?

@xavianaxw
Copy link

@olets yeah it happens for my stylesheets as well

@olets
Copy link
Contributor

olets commented May 30, 2019

@xavianaxw html and stylesheets, that sounds like some bigger problem. Might deserve its own issue but for now:

  • What version of Blendid are you on?
  • What exactly are you seeing with stylesheets?
  • Mind posting your task-config and path-config?

@olets olets self-assigned this May 30, 2019
@xavianaxw
Copy link

"blendid": "^4.5.0",
module.exports = {
  html        : true,
  images      : true,
  fonts       : true,
  static      : true,
  svgSprite   : true,
  ghPages     : true,

  stylesheets : {
    autoprefixer: {
      browsers: ['ie 11', 'last 3 versions'],
    },
  },

  javascripts: {
    entry: {
      // files paths are relative to
      // javascripts.dest in path-config.json
      app: ["@babel/polyfill", "./app.js"],
      "app-styleguide": ["@babel/polyfill", "./app-styleguide.js"],
    },
    babelLoader: {
      // "test" is derived from TASK_CONFIG.javascripts.extensions
      // "options" is derived from TASK_CONFIG.javascripts.babel
      loader: "babel-loader",
      exclude: /node_modules\/(?!(dom7|swiper)\/).*/,
    },
    alias: {
      PlyrDefaults: "plyr/src/js/config/defaults.js",
      PlyrPolyfilled: "plyr/dist/plyr.polyfilled.min.js",
    },
  },

  browserSync: {
    server: {
      // should match `dest` in
      // path-config.json
      baseDir: 'public'
    }
  },

  production: {
    rev: true
  }
}

task-config.js

{
  "src": "./src",
  "dest": "./public",

  "html": {
    "src": "html",
    "dest": "./"
  },

  "static": {
    "src": "static",
    "dest": "./"
  },

  "javascripts": {
    "src": "javascripts",
    "dest": "javascripts"
  },

  "stylesheets": {
    "src": "stylesheets",
    "dest": "stylesheets"
  },

  "images": {
    "src": "images",
    "dest": "images"
  },

  "fonts": {
    "src": "fonts",
    "dest": "fonts"
  },

  "icons": {
    "src": "icons",
    "dest": "images"
  }
}

path-config.json

The stylesheet gets updated once in a while. Sometimes it just gets skipped. Not too sure how to replicate this though

@xavianaxw
Copy link

Saving app.scss does however trigger an update to the stylesheet though

@jakefleming
Copy link
Author

Did you ever figure out the issue?

Sorry, this was so long ago that I have no idea if this still happens in whatever project I was trying to use it on! Good luck @xavianaxw

@olets
Copy link
Contributor

olets commented Jun 10, 2019

Thanks for the info @xavianaxw. I haven't dug in yet. Is it possible this is tied to #561?

@xavianaxw
Copy link

I think it's not a similar case but from what is stated on #561 browser sync could be acting up or something.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants