电子编译如何使用scss或至少css与反应?

时间:2017-10-19 22:11:51

标签: css reactjs sass electron electron-forge

我很感激如何使用def ans(n): total = 1 tcd = 0 #total used at current day tcpd = 0 #total used at current and previous day m = 1000000007 for j in range(0, n): next_tot = 2*total - tcpd next_tcd = total - tcpd next_tcpd = tcd - tcpd total = next_tot % m tcd = next_tcd % m tcpd = next_tcpd % m return total print(ans(999999)) 或至少与746580045以及scsscss合作的示例。

谢谢!

1 个答案:

答案 0 :(得分:3)

electron-prebuilt-compile可以帮助您。来自their own provided example

<head>
  <link rel="stylesheet" type="text/less" href="main.less" />
</head>

<body id="host">
  <script type="application/javascript">
    import React from 'react';
    import ReactDOM from 'react-dom';
    import TodoApp from './components/TodoApp';

    ReactDOM.render(React.createComponent(TodoApp), document.getElementById('host'));
  </script>
</body>

如果您想使用webpack,可以查看electron-webpack add-ons来处理React,SASS,LESS等。