mirror of
https://github.com/YMFE/yapi.git
synced 2025-01-24 13:14:16 +08:00
none
This commit is contained in:
parent
ebd4f58ac2
commit
e4f08e4734
7
ykit.js
7
ykit.js
@ -1,6 +1,6 @@
|
||||
var path = require('path');
|
||||
var ExtractTextPlugin = require("extract-text-webpack-plugin");
|
||||
var extractCSS = new ExtractTextPlugin('stylesheets/[name].css');
|
||||
// var extractCSS = new ExtractTextPlugin('stylesheets/[name].css');
|
||||
|
||||
module.exports = {
|
||||
plugins: ['react', 'es6', 'antd'],
|
||||
@ -15,10 +15,11 @@ module.exports = {
|
||||
|
||||
baseConfig.module.loaders.push({
|
||||
test: /\.scss$/,
|
||||
loader: extractCSS.extract(['css','sass'])
|
||||
// loader: extractCSS.extract(['css','sass'])
|
||||
loader: 'style-loader!css-loader!sass-loader'
|
||||
});
|
||||
|
||||
baseConfig.plugins = baseConfig.plugins.concat([extractCSS])
|
||||
// baseConfig.plugins = baseConfig.plugins.concat([extractCSS])
|
||||
|
||||
// baseConfig.watch = true;
|
||||
// console.log(baseConfig)
|
||||
|
Loading…
Reference in New Issue
Block a user