Lines Matching refs:_this
211 function checkApp(_this) {
215 return _this.resourcePath === path.resolve(process.env.projectPath,
219 function loadApp (_this, name, isEntry, customLang, source) {
222 if (checkApp(_this)) {
223 const filename = _this.resourcePath.replace(path.extname(_this.resourcePath).toString(), '')
231 output += 'var $app_style$ = ' + getRequireString(_this, getLoaderString('style', {
239 output += 'var $app_script$ = ' + getRequireString(_this, getLoaderString('script', {
244 source: _this.resourcePath,
246 }), _this.resourcePath)
273 } else if (/\.js$/.test(_this.resourcePath)) {
280 function loadPage (_this, name, isEntry, customLang, source, parentPath) {
282 if (path.extname(_this.resourcePath).match(/\.hml/)) {
283 const filename = _this.resourcePath.replace(path.extname(_this.resourcePath).toString(), '')
284 const resourcePath = _this.resourcePath
285 const loaderQuery = loaderUtils.getOptions(_this) || {}
290 output += loadPageCheckElementLength(_this, elementLength, frag, elementNames, resourcePath,
293 output += 'var $app_template$ = ' + getRequireString(_this, getLoaderString('template', {
298 source: _this.resourcePath
299 }), _this.resourcePath)
302 const cssContent = loadPageFindCss(_this, filename, customLang)
307 const scriptContent = loadPageFindJs(_this, filename, customLang)
318 function loadPageCheckElementLength (_this, elementLength, frag, elementNames, resourcePath,
332 logWarn(_this, [{
343 logWarn(_this, [{
350 checkEntry(_this, filePath, element.src)
353 logWarn(_this, [{
359 output += getRequireString(_this, getLoaderString('element', {
369 function loadPageFindCss (_this, filename, customLang) {
375 output = 'var $app_style$ = ' + getRequireString(_this, getLoaderString('style', {
388 output = 'var $app_style$ = ' + getRequireString(_this, getLoaderString('style', {
401 output = 'var $app_style$ = ' + getRequireString(_this, getLoaderString('style', {
414 output = 'var $app_style$ = ' + getRequireString(_this, getLoaderString('style', {
434 function loadPageFindJs (_this, filename, customLang) {
444 output = 'var $app_script$ = ' + getRequireString(_this, getLoaderString('script', {
491 function checkEntry(_this, filePath, elementSrc) {
492 if (_this._compilation.entries) {
493 for (var key of _this._compilation.entries.keys()) {
496 logWarn(_this, [{