Commit 1492f10a authored by yann300's avatar yann300 Committed by GitHub

push external import in localhost as well

parent cb673996
...@@ -88,7 +88,7 @@ module.exports = class CompilerImports extends Plugin { ...@@ -88,7 +88,7 @@ module.exports = class CompilerImports extends Plugin {
(error, content, cleanUrl, type, url) => { (error, content, cleanUrl, type, url) => {
if (error) return cb(error) if (error) return cb(error)
if (this.fileManager) { if (this.fileManager) {
const workspace = this.fileManager.getProvider('workspace') const workspace = this.fileManager.currentFileProvider()
const path = targetPath || type + '/' + cleanUrl const path = targetPath || type + '/' + cleanUrl
if (workspace) workspace.addExternal(path, content, url) if (workspace) workspace.addExternal(path, content, url)
} }
......
'use strict' 'use strict'
var EventManager = require('../../lib/events') var EventManager = require('../../lib/events')
const FileProvider = require('./fileProvider')
module.exports = class RemixDProvider { module.exports = class RemixDProvider extends FileProvider {
constructor (appManager) { constructor (appManager) {
this.event = new EventManager() super('localhost')
this._appManager = appManager this._appManager = appManager
this.type = 'localhost'
this.error = { EEXIST: 'File already exists' } this.error = { EEXIST: 'File already exists' }
this._isReady = false this._isReady = false
this._readOnlyFiles = {} this._readOnlyFiles = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment