export default ( ) => { if ( document . getElementById ( 'lessColorFile' ) ) return ; const colorLess = document . createElement ( 'link' ) ; colorLess . setAttribute ( 'id' , 'lessColorFile' ) ; colorLess . setAttribute ( 'rel' , 'stylesheet/less' ) ; colorLess . setAttribute ( 'href' , '/color.less' ) ; const lessConfig = document . createElement ( 'script' ) ; lessConfig . innerHTML = `
    window.less = {
      async: true,
      env: 'production',
      javascriptEnabled: true
    };
  ` ; document . body . appendChild ( colorLess ) ; document . body . appendChild ( lessConfig ) ; } ;