-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c100f12
commit 76df7fc
Showing
5 changed files
with
75 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
/node_modules/ | ||
node_modules/ | ||
examples/*/public/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
font-awesome-sass-loader extract-css example | ||
============================================ | ||
|
||
```bash | ||
# install deps | ||
npm install | ||
|
||
# Run on dev server | ||
npm run dev | ||
|
||
# Run on prod server | ||
npm run dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
styleLoader: require('extract-text-webpack-plugin').extract('style-loader', 'css-loader!sass-loader'), | ||
|
||
styles: { | ||
"mixins": true, | ||
|
||
"path": true, | ||
"core": true, | ||
"larger": true, | ||
"fixed-width": true, | ||
"list": true, | ||
"bordered-pulled": true, | ||
"animated": true, | ||
"rotated-flipped": true, | ||
"stacked": true, | ||
"icons": true, | ||
"screen-reader": true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"private": true, | ||
"scripts": { | ||
"clean": "rm -rf public/", | ||
"dev": "webpack -d", | ||
"dist": "webpack -p" | ||
}, | ||
"dependencies": { | ||
"css-loader": "*", | ||
"style-loader": "*", | ||
"extract-text-webpack-plugin": "^1", | ||
"file-loader": "*", | ||
"font-awesome": "^4.6.0", | ||
"font-awesome-sass-loader": "^1.0", | ||
"node-gyp": "*", | ||
"node-sass": "*", | ||
"sass-loader": "*", | ||
"url-loader": "*", | ||
"webpack": "^1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
|
||
module.exports = { | ||
entry: { | ||
'font-awesome': 'font-awesome-sass!./font-awesome.config.js', | ||
}, | ||
output: { | ||
path: './public/assets', | ||
publicPath: '/assets/', | ||
filename: '[name].js', | ||
}, | ||
module: { | ||
loaders: [ | ||
{ test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url-loader?limit=10000&mimetype=application/font-woff' }, | ||
{ test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file-loader' }, | ||
], | ||
}, | ||
plugins: [ | ||
new ExtractTextPlugin("[name].css"), | ||
], | ||
}; |