diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:27:17 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-09-19 22:27:17 +0200 |
commit | ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14 (patch) | |
tree | fc44ffb9e7feba0688eed18b41af8b6df693cf7d /client/config/webpack.common.js | |
parent | d268c551cc0cbe2f83f8cc9533ce5f636eda860a (diff) | |
download | PeerTube-ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14.tar.gz PeerTube-ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14.tar.zst PeerTube-ad22074a780b4bdbe3cd9e903b3fa5ef83eaef14.zip |
Client: fix prod build process
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index 88a3639d2..882013a9e 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -142,15 +142,11 @@ module.exports = function (options) { | |||
142 | }, | 142 | }, |
143 | 143 | ||
144 | { | 144 | { |
145 | test: /\.scss$/, | 145 | test: /\.(sass|scss)$/, |
146 | exclude: /node_modules/, | 146 | loaders: ['css-to-string-loader', 'css-loader?sourceMap', 'resolve-url', 'sass-loader?sourceMap'] |
147 | loaders: [ 'raw-loader', 'sass-loader' ] | ||
148 | }, | ||
149 | |||
150 | { | ||
151 | test: /\.(woff2?|ttf|eot|svg)$/, | ||
152 | loader: 'url?limit=10000&name=assets/fonts/[hash].[ext]' | ||
153 | }, | 147 | }, |
148 | { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'url?limit=10000&minetype=application/font-woff' }, | ||
149 | { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, loader: 'file' }, | ||
154 | 150 | ||
155 | /* Raw loader support for *.html | 151 | /* Raw loader support for *.html |
156 | * Returns file content as string | 152 | * Returns file content as string |