Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
greedying committed Sep 29, 2017
1 parent 341571e commit 450c757
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -2,7 +2,7 @@
"name": "tctip",
"version": "1.0.2",
"description": "在页面右侧生成打赏界面的开源js插件",
"main": "dist/tctip-1.0.1.min.js",
"main": "dist/tctip-1.0.2.min.js",
"scripts": {
"build": "webpack --env build",
"dev": "webpack --progress --colors --watch --env dev",
Expand Down
13 changes: 11 additions & 2 deletions webpack.config.js
Expand Up @@ -45,11 +45,20 @@ const config = {
},
{
test: /\.css$/,
loader: "style-loader!css-loader!postcss-loader"
use: [
'style-loader',
{ loader: 'css-loader', options: { modules: true, importLoaders: 1 } },
'postcss-loader'
]
},
{
test: /\.less$/,
loader: "style-loader!css-loader!postcss-loader!less-loader"
use: [
'style-loader',
{ loader: 'css-loader', options: { modules: true, importLoaders: 1 } },
'postcss-loader',
'less-loader'
]
},
{
 test: /\.(png|jpg|gif)$/,
Expand Down

0 comments on commit 450c757

Please sign in to comment.