mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-10 19:06:34 +03:00
Update webpack to the latest beta
This commit is contained in:
parent
aef4039949
commit
a8285b2652
|
@ -37,7 +37,9 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
outputPath: root('dist'),
|
contentBase: root('demo'),
|
||||||
|
watchContentBase: true,
|
||||||
|
compress: true,
|
||||||
watchOptions: {
|
watchOptions: {
|
||||||
poll: true
|
poll: true
|
||||||
},
|
},
|
||||||
|
@ -95,15 +97,15 @@ module.exports = {
|
||||||
exclude: [/\.(spec|e2e)\.ts$/]
|
exclude: [/\.(spec|e2e)\.ts$/]
|
||||||
}, {
|
}, {
|
||||||
test: /lib[\\\/].*\.scss$/,
|
test: /lib[\\\/].*\.scss$/,
|
||||||
loaders: ['raw-loader', "sass"],
|
loaders: ['raw-loader', "sass-loader"],
|
||||||
exclude: [/redoc-initial-styles\.scss$/]
|
exclude: [/redoc-initial-styles\.scss$/]
|
||||||
}, {
|
}, {
|
||||||
test: /\.scss$/,
|
test: /\.scss$/,
|
||||||
loaders: ['style', 'css?-import', "sass"],
|
loaders: ['style-loader', 'css-loader?-import', "sass-loader"],
|
||||||
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.scss$/]
|
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.scss$/]
|
||||||
}, {
|
}, {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loaders: ['style', 'css?-import'],
|
loaders: ['style-loader', 'css-loader?-import'],
|
||||||
}, {
|
}, {
|
||||||
test: /\.html$/,
|
test: /\.html$/,
|
||||||
loader: 'raw-loader'
|
loader: 'raw-loader'
|
||||||
|
|
|
@ -70,7 +70,7 @@ const config = {
|
||||||
exclude: [/redoc-initial-styles\.css$/]
|
exclude: [/redoc-initial-styles\.css$/]
|
||||||
}, {
|
}, {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loaders: ['style', 'css?-import'],
|
loaders: ['style-loader', 'css-loader?-import'],
|
||||||
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.css$/]
|
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.css$/]
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
|
|
|
@ -61,7 +61,7 @@ module.exports = {
|
||||||
exclude: [/redoc-initial-styles\.css$/]
|
exclude: [/redoc-initial-styles\.css$/]
|
||||||
}, {
|
}, {
|
||||||
test: /\.css$/,
|
test: /\.css$/,
|
||||||
loaders: ['style', 'css?-import'],
|
loaders: ['style-loader', 'css-loader?-import'],
|
||||||
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.css$/]
|
exclude: [/lib[\\\/](?!.*redoc-initial-styles).*\.css$/]
|
||||||
}, {
|
}, {
|
||||||
test: /\.html$/,
|
test: /\.html$/,
|
||||||
|
|
|
@ -96,8 +96,8 @@
|
||||||
"ts-helpers": "^1.1.1",
|
"ts-helpers": "^1.1.1",
|
||||||
"tslint": "^3.15.1",
|
"tslint": "^3.15.1",
|
||||||
"typescript": "^2.0.3",
|
"typescript": "^2.0.3",
|
||||||
"webpack": "^2.1.0-beta.25",
|
"webpack": "^2.1.0-beta.27",
|
||||||
"webpack-dev-server": "^2.1.0-beta.10",
|
"webpack-dev-server": "^2.1.0-beta.12",
|
||||||
"zone.js": "^0.6.25"
|
"zone.js": "^0.6.25"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user