brunch / brunch

:fork_and_knife: Web applications made easy. Since 2011.
https://brunch.io
MIT License
6.81k stars 436 forks source link

No assets being copied to public folder. #1840

Closed jcothron closed 5 years ago

jcothron commented 5 years ago

Description

None of the assets are being copied to the public folder when running brunch build. I've tried a couple of the skeleton projects and a different computer with the latest of both node and brunch. This was working fine yesterday. Window 10 OS. VS Code terminal and or Windows command prompt.

this is one of the skeleton projects:

package.json: { "name": "brunch-app", "description": "Brunch.io application", "private": true, "author": "Brunch", "version": "0.0.1", "repository": "", "scripts": { "start": "brunch watch --server", "build": "brunch build --production" }, "dependencies": {}, "devDependencies": { "auto-reload-brunch": "^2", "babel-brunch": "~6.0", "babel-preset-latest": "^6", "brunch": "^2", "clean-css-brunch": "^2", "uglify-js-brunch": "^2" } }

brunch.config.js

// See http://brunch.io for documentation. exports.files = { javascripts: { joinTo: { 'vendor.js': /^(?!app)/, // Files that are not in app dir. 'app.js': /^app/ } }, stylesheets: {joinTo: 'app.css'} };

exports.plugins = { babel: {presets: ['latest']} };

paulmillr commented 5 years ago

reinstall brunch

jcothron commented 5 years ago

reinstall brunch

That's the first thing I tried. And just to be sure I did it again; still doesn't do anything.

paulmillr commented 5 years ago

what about removing and reinstalling node_modules? we've just released file watcher update; it had a bug yesterday that could have caused this - which has been fixed since

jcothron commented 5 years ago

I completely removed node/npm and deleted all folders in Program Files, as well as AppData; in other words removed everything from my system. Then reinstalled the latest of everything; still no love.

Node: 11.12.0 NPM: 6.7.0 Brunch: 2.10.17

Note - I just downgraded to Brunch@2.10.16 and it is creating the public folder and copying index.html.