add rollup-plugin-url to support importing images
This commit is contained in:
parent
c19fb7efe0
commit
ab9c25a789
6 changed files with 2910 additions and 12 deletions
|
@ -28,4 +28,4 @@ class Example extends Component {
|
|||
|
||||
## License
|
||||
|
||||
{{license}} © [{{author}}](https://github.com/{{repo}})
|
||||
{{license}} © [{{author}}](https://github.com/{{author}})
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
"module": "dist/index.es.js",
|
||||
"jsnext:main": "dist/index.es.js",
|
||||
"scripts": {
|
||||
"test": "react-scripts test --env=jsdom",
|
||||
"test": "CI=1 react-scripts test --env=jsdom",
|
||||
"build": "rollup -c",
|
||||
"start": "rollup -c -w",
|
||||
"prepare": "{{manager}} run build",
|
||||
|
@ -30,12 +30,16 @@
|
|||
"babel-preset-react": "^6.24.1",
|
||||
"babel-preset-stage-0": "^6.24.1",
|
||||
"gh-pages": "^1.1.0",
|
||||
"react": "^16.2.0",
|
||||
"react-dom": "^16.2.0",
|
||||
"react-scripts": "^1.1.1",
|
||||
"rollup": "^0.54.0",
|
||||
"rollup-plugin-babel": "^3.0.3",
|
||||
"rollup-plugin-commonjs": "^8.2.1",
|
||||
"rollup-plugin-node-resolve": "^3.0.2",
|
||||
"rollup-plugin-peer-deps-external": "^2.0.0",
|
||||
"rollup-plugin-postcss": "^1.1.0"
|
||||
"rollup-plugin-postcss": "^1.1.0",
|
||||
"rollup-plugin-url": "^1.3.0"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
|
@ -3,6 +3,7 @@ import commonjs from 'rollup-plugin-commonjs'
|
|||
import external from 'rollup-plugin-peer-deps-external'
|
||||
import postcss from 'rollup-plugin-postcss'
|
||||
import resolve from 'rollup-plugin-node-resolve'
|
||||
import url from 'rollup-plugin-url'
|
||||
|
||||
import pkg from './package.json'
|
||||
|
||||
|
@ -23,6 +24,7 @@ export default {
|
|||
postcss({
|
||||
modules: true
|
||||
}),
|
||||
url(),
|
||||
babel({
|
||||
exclude: 'node_modules/**'
|
||||
}),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue