diff --git a/style/mixins/index.less b/style/mixins/index.less index 4ec3da1919..4fbf83fc9c 100644 --- a/style/mixins/index.less +++ b/style/mixins/index.less @@ -16,4 +16,3 @@ // Layout @import "grid.less"; - diff --git a/webpack.config.js b/webpack.config.js index 68523e5dab..fe6238b6e9 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -9,10 +9,14 @@ entry['demo'] = './scripts/demo.js'; module.exports = { entry: entry, + cache: true, + resolve: { extensions: ['', '.js', '.jsx'] }, + noParse: /_site|node_modules/, + output: { path: path.join(process.cwd(), 'dist'), filename: '[name].js' @@ -33,14 +37,17 @@ module.exports = { } }, { test: /\.json$/, + exclude: /node_modules/, loader: 'json-loader' }, { test: /\.less$/, + exclude: /node_modules/, loader: ExtractTextPlugin.extract( 'css?sourceMap&-minimize!' + 'postcss-loader!' + 'less?sourceMap' ) }, { test: /\.css$/, + exclude: /node_modules/, loader: ExtractTextPlugin.extract( 'css?sourceMap&-minimize!' + 'postcss-loader' )