Skip to content

Instantly share code, notes, and snippets.

@thiagomajesk
Last active August 8, 2017 17:30
Show Gist options
  • Save thiagomajesk/501079b62fa2b599b02cab2c38328172 to your computer and use it in GitHub Desktop.
Save thiagomajesk/501079b62fa2b599b02cab2c38328172 to your computer and use it in GitHub Desktop.
ASP.NET Core Brunch Config (Babel + Bootstrap 4 + LESS + Font Awesome)
module.exports = {
paths: {
public: "wwwroot",
watched: ["wwwroot/javascripts", "wwwroot/stylesheets"]
},
npm: {
styles: {
"bootstrap": ["dist/css/bootstrap.css"],
"font-awesome": ["css/font-awesome.css"],
"animate.css": ["animate.css"]
},
globals: {
"jQuery": "jquery",
"$": "jquery",
"Tether": "tether",
"bootstrap": "bootstrap"
}
},
files: {
javascripts: { joinTo: "dist/site.js" },
stylesheets: { joinTo: "dist/site.css" }
},
modules: {
nameCleaner: path => path.replace(/^wwwroot\/javascripts\//, ""),
autoRequire: { "dist/site.js": ['init'] }
},
plugins: {
babel: {
ignore: /^node_modules/,
pattern: /\.(js|vue)$/
},
copycat: {
fonts: ["node_modules/font-awesome/fonts"]
}
}
}
|--Project
| |__wwwroot
| | |__dist
| | |__fonts
| | |__images
| | |__javascripts
| | init.js
| | |__stylesheets
| |__node_modules
{
"name": "project",
"version": "1.0.0",
"description": "",
"scripts": {},
"author": "",
"dependencies": {
"bootstrap": "^4.0.0-alpha.6",
"font-awesome": "^4.7.0",
"jquery": "^3.2.1",
"tether": "^1.4.0"
},
"devDependencies": {
"babel-brunch": "^6.1.1",
"brunch": "^2.10.10",
"copycat-brunch": "^1.1.0",
"less-brunch": "^2.10.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment