Packages

This is a CMS written in Elixir. Aims to be the great open-source ecommerce and/or startup solution for those who are searching for a performance and stability on top of modern technologies like React and Elixir.

Current section

Files

Jump to
lyn priv commonjs_reaxt style.loader.js
Raw

priv/commonjs_reaxt/style.loader.js

var fs = require('fs')
var nodeLoaderPath = __dirname+'/style-collector.loader.js'
var nodeLoaderCode = fs.readFileSync(nodeLoaderPath,{encoding: "utf8"})
var webLoaderPath = require.resolve('style-loader')
var loaderUtilPath = require.resolve('loader-utils')
var webLoaderCode = fs.readFileSync(webLoaderPath,{encoding: "utf8"}).replace('loader-utils',loaderUtilPath)
module.exports = function(content){
var mod
if(this.target === "node")
mod = this.exec(nodeLoaderCode,nodeLoaderPath)
else
mod = this.exec(webLoaderCode,webLoaderPath)
return mod.apply(this, arguments)
}
module.exports.pitch = function(req) {
var mod
if(this.target === "node")
mod = this.exec(nodeLoaderCode,nodeLoaderPath)
else
mod = this.exec(webLoaderCode,webLoaderPath)
return mod.pitch.apply(this, arguments)
}