mirror of
https://github.com/wassname/react-webpack-template.git
synced 2026-07-11 16:35:06 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 393b04526a | |||
| c2b2d99f61 | |||
| 02ff1ecad6 | |||
| 12a446f747 | |||
| 262c0bbc9e |
+3
-2
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "react-webpack-template",
|
"name": "react-webpack-template",
|
||||||
"version": "0.0.7",
|
"version": "0.0.10",
|
||||||
"description": "A base skeleton template for react and webpack without task runners",
|
"description": "A base skeleton template for react and webpack without task runners",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -12,7 +12,8 @@
|
|||||||
"dist": "npm run copy & webpack --env=dist",
|
"dist": "npm run copy & webpack --env=dist",
|
||||||
"lint": "eslint ./src",
|
"lint": "eslint ./src",
|
||||||
"copy": "copyfiles -f ./src/index.html ./src/favicon.ico ./dist",
|
"copy": "copyfiles -f ./src/index.html ./src/favicon.ico ./dist",
|
||||||
"clean": "rimraf dist/*"
|
"clean": "rimraf dist/*",
|
||||||
|
"patch-release": "npm version patch && npm publish && git push --follow-tags"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
@@ -46,6 +46,22 @@ var config = {
|
|||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loader: 'style!css'
|
loader: 'style!css'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
test: /\.sass/,
|
||||||
|
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded&indentedSyntax'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.scss/,
|
||||||
|
loader: 'style-loader!css-loader!sass-loader?outputStyle=expanded'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.less/,
|
||||||
|
loader: 'style-loader!css-loader!less-loader'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
test: /\.styl/,
|
||||||
|
loader: 'style-loader!css-loader!stylus-loader'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
test: /\.(png|jpg|gif|woff|woff2)$/,
|
test: /\.(png|jpg|gif|woff|woff2)$/,
|
||||||
loader: 'url-loader?limit=8192'
|
loader: 'url-loader?limit=8192'
|
||||||
|
|||||||
Reference in New Issue
Block a user