// Create a daily Habit Tracking visualization in Obsidian
// Requires Dataview plugin
// Scans dayly notes for individual tasks recorded as children of habit property in front matter
dv.header(2,"Daily Habit Tracker");
// Returns the currently tracked Habits from the most recent daily note
// (assumes files are named by date)
let currentHabits = () => dv.array( dv.pages('"_Daily/day"')
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dev Webpack mode for cross-browser fixing | |
* Uses regular Webpack not Webpack-server. | |
* Uses BrowserSync to create a local server. | |
* Watch mode compiles and reloads on changes. | |
* Slower, css and js minification version. | |
*/ | |
const path = require('path') | |
const webpack = require('webpack') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Final production version. | |
* Minify CSS and JS | |
* Babel and Browser prefix for backwards compatibility | |
* Image minification and copy files to assets | |
*/ | |
const path = require("path"); | |
const webpack = require('webpack'); // to access built-in plugins | |
// deletes the assets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Dev Webpack mode | |
* Uses regular Webpack not Webpack-server. | |
* Uses BrowserSync to create a local server. | |
* Watch mode compiles and reloads on changes. | |
* Simplified version doesn't minify, etc.. to make process faster. | |
*/ | |
const path = require('path'); | |
const webpack = require('webpack'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "webpack-in-wordpress", | |
"version": "1.0.0", | |
"description": "Compiles scss into css and babels js files", | |
"main": "index.js", | |
"scripts": { | |
"build": "webpack --config webpack.config.prod.js", | |
"start": "webpack --config webpack.config.dev.js --progress --watch", | |
"test": "webpack --config webpack.config.test.js --progress --watch" | |
}, |