Skip to content

Commit

Permalink
chore(styles):Remove unneeded styles from the sass file
Browse files Browse the repository at this point in the history
  • Loading branch information
codenaz committed Mar 13, 2019
1 parent 74aa09c commit 365a717
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 8 deletions.
Empty file added .npmignore
Empty file.
4 changes: 2 additions & 2 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"description": "A package for adding paginator functionality to react apps",
"version": "0.1.0",
"main": "dist/index.js",
"module": "dist/index.js",
"files": [
"dist",
"animate.gif",
Expand Down Expand Up @@ -46,8 +45,8 @@
"not op_mini all"
],
"peerDependencies": {
"react": ">=16.8.*",
"react-dom": ">=16.8.*"
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
Expand Down
6 changes: 5 additions & 1 deletion src/lib/style/main.scss
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
@import '~bootstrap/dist/css/bootstrap.css';
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/mixins';
@import '~bootstrap/scss/reboot';
@import '~bootstrap/scss/pagination';
13 changes: 12 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ module.exports = {
extensions: ['*', '.js', '.jsx']
},
externals: {
react: 'commonjs react'
react: {
commonjs: 'react',
commonjs2: 'react',
amd: 'React',
root: 'React'
},
'react-dom': {
commonjs: 'react-dom',
commonjs2: 'react-dom',
amd: 'ReactDOM',
root: 'ReactDOM'
}
}
};

0 comments on commit 365a717

Please sign in to comment.