Browse Source

fixed style loader webpack bug

pull/1/head
Arwed Mett 3 years ago
parent
commit
538f682d33
Signed by: Pfeifenjoy GPG Key ID: 86943827297DA9FC
  1. 2
      src/runtime.js
  2. 2
      src/style/index.js
  3. 3
      webpack.config.js

2
src/runtime.js

@ -1,6 +1,6 @@
//@flow
import "./index.html"
import "./style/index.less"
import "style-loader!./style/index.less"
import "@babel/polyfill"
import React from "react"

2
src/style/index.js

@ -1,5 +1,5 @@
//@flow
import index_style from "css-loader!less-loader!./index.less"
import index_style from "./index.less"
export default index_style.toString()

3
webpack.config.js

@ -59,9 +59,6 @@ const baseConfig = {
{
test: /.less$/,
use: [
{
loader: "style-loader"
},
{
loader: "css-loader"
},

Loading…
Cancel
Save