Exemplo n.º 1
0
 private static void OnChanged(object source, FileSystemEventArgs e)
 {
     PreventDoubleChangeFileHandle(() =>
     {
         Debug.WriteLine($"Frontend assets were changed. Changed type: {e.ChangeType}");
         _webpackAssets = WebpackConfigParser.GetWebpackAssetsJson(e.FullPath);
     });
 }
Exemplo n.º 2
0
        public static void Initialize(string path)
        {
            _fileName = path;
            var fileInfo = new FileInfo(path);

            InitializeWatcher(fileInfo);

            _webpackAssets     = WebpackConfigParser.GetWebpackAssetsJson(_fileName);
            _previousWriteTime = DateTime.Now;
            Debug.WriteLine($"Initial Webpack assets was read.");
        }