3.0.4 • Published 7 years ago
@lmeikle/simple-loading-spinner v3.0.4
simple-loading-spinner
Renders a simple react loading spinner using Webpack 4. Based on: https://www.npmjs.com/package/react-webpack-component
Example:
import React, { Component } from 'react';
import { LoadingComponent } from '@lmeikle/simple-loading-component';
class HelloWorld extends Component {
render() {
return <LoadingComponent />;
}
}
export default HelloWorld;Commands
Building
Compile in mode production:
1. npm run buildTo publish:
1. npm run prepublish
2. npm publish --access publicRunning Locally (Watch changes in mode development)
1. npm run startTesting (using Jest with Enyzme)
1. npm run testStructure
<pre>
|-- dist (Compiled)
| `-- index.js
|-- src
| |-- loading
| `-- index.js
`-- webpack.config.js
</pre>