Skip to content

Static assets are not generated on second build #537

@Intrepidd

Description

@Intrepidd

Expected Behavior

When re-building, static assets (app/javascript/images/xxx.png) should be built

Actual Behavior

Such assets are not built, similar to #378

Is an error being thrown?

No error is being thrown, build succeeds.

Steps to Reproduce

I'm using rails with webpacker, no crazy configuration.

My images are imported : require.context('../images', true)

Then in the layout when trying to link the favicons the asset is not found : asset_pack_url('media/images/apple-touch-icon.png')

Operating System, Node, and NPM dependency versions

Mac OS 10.15.7
Node v14.13.1

  "dependencies": {
    "@babel/core": "^7.12.3",
    "@babel/preset-typescript": "^7.12.1",
    "@rails/actioncable": "^6.0.0",
    "@rails/ujs": "^6.0.0",
    "@rails/webpacker": "5.2.1",
    "@typeform/embed": "^0.25.4",
    "@types/chart.js": "^2.9.27",
    "@types/turbolinks": "^5.2.0",
    "@types/typeform__embed": "^0.22.2",
    "@uppy/aws-s3-multipart": "^1.8.6",
    "@uppy/core": "^1.13.2",
    "@uppy/dashboard": "^1.12.8",
    "@uppy/locales": "^1.16.8",
    "chart.js": "^2.9.4",
    "core-js": "3",
    "react-is": "^17.0.1",
    "stimulus": "^1.1.1",
    "tailwindcss": "^1.9.6",
    "turbolinks": "^5.2.0",
    "typescript": "^4.0.5",
    "webpack": "^4.44.2",
    "webpack-bundle-analyzer": "^3.9.0"
  },
  "version": "0.1.0",
  "devDependencies": {
    "@typescript-eslint/eslint-plugin": "^4.6.0",
    "@typescript-eslint/parser": "^4.6.0",
    "eslint": "^7.12.1",
    "hard-source-webpack-plugin": "^0.13.1",
    "webpack-dev-server": "^3.11.0"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions