Rename dev-live-assets feature to dev_live_assets

This commit is contained in:
Lucien Greathouse
2019-12-20 14:26:08 -08:00
parent a398338c02
commit cdc5513726
2 changed files with 2 additions and 6 deletions

View File

@@ -20,11 +20,7 @@ default = []
unstable_two_way_sync = []
# Enable this feature to live-reload assets from the web UI.
dev-live-assets = []
# Enables specifying user plugins in the project file. User plugins are Lua
# files and currently not fully implemented. See issue #55.
user-plugins = []
dev_live_assets = []
[workspace]
members = [

View File

@@ -1,7 +1,7 @@
macro_rules! declare_asset {
($name: ident, $path: expr) => {
pub fn $name() -> &'static str {
if cfg!(feature = "dev-live-assets") {
if cfg!(feature = "dev_live_assets") {
use std::{fs::read_to_string, path::Path};
let file_path = Path::new(file!());