mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 06:03:38 +08:00
update webpack config
This commit is contained in:
parent
a1751b5f55
commit
50c28aee45
@ -16,4 +16,3 @@
|
|||||||
|
|
||||||
// Layout
|
// Layout
|
||||||
@import "grid.less";
|
@import "grid.less";
|
||||||
|
|
||||||
|
@ -9,10 +9,14 @@ entry['demo'] = './scripts/demo.js';
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
entry: entry,
|
entry: entry,
|
||||||
|
|
||||||
|
cache: true,
|
||||||
|
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['', '.js', '.jsx']
|
extensions: ['', '.js', '.jsx']
|
||||||
},
|
},
|
||||||
|
|
||||||
|
noParse: /_site|node_modules/,
|
||||||
|
|
||||||
output: {
|
output: {
|
||||||
path: path.join(process.cwd(), 'dist'),
|
path: path.join(process.cwd(), 'dist'),
|
||||||
filename: '[name].js'
|
filename: '[name].js'
|
||||||
@ -33,14 +37,17 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}, {
|
}, {
|
||||||
test: /\.json$/,
|
test: /\.json$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
loader: 'json-loader'
|
loader: 'json-loader'
|
||||||
}, {
|
}, {
|
||||||
test: /\.less$/,
|
test: /\.less$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
loader: ExtractTextPlugin.extract(
|
loader: ExtractTextPlugin.extract(
|
||||||
'css?sourceMap&-minimize!' + 'postcss-loader!' + 'less?sourceMap'
|
'css?sourceMap&-minimize!' + 'postcss-loader!' + 'less?sourceMap'
|
||||||
)
|
)
|
||||||
}, {
|
}, {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
|
exclude: /node_modules/,
|
||||||
loader: ExtractTextPlugin.extract(
|
loader: ExtractTextPlugin.extract(
|
||||||
'css?sourceMap&-minimize!' + 'postcss-loader'
|
'css?sourceMap&-minimize!' + 'postcss-loader'
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user