insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

es lib There is no css file in it

busyzz-1994 opened this issue · comments

this is src/index.js:

import React from 'react';
import './index.scss';

this is nwb.config.js:

module.exports = {
  type: 'react-component',
  npm: {
    esModules: true,
    umd: {
      global: 'ReactWxImageGrid',
      externals: {
        react: 'React',
      },
    },
  },
};

this is lib/index.js:

require('./index.scss');

Not found ./index.scss
This allowed me to introduce into the app causing an error,so how to solve this problem?