diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-04-21 11:06:33 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-04-26 21:23:19 +0200 |
commit | 383bfc8356d444cbed1dab7e5c1b3bb16becfdfd (patch) | |
tree | ae0541d99056d75b08f14e8e4ea73f67f173d942 /client/config/webpack.common.js | |
parent | 240c64c5f4277f0ce36c094f0663bd30d264ec40 (diff) | |
download | PeerTube-383bfc8356d444cbed1dab7e5c1b3bb16becfdfd.tar.gz PeerTube-383bfc8356d444cbed1dab7e5c1b3bb16becfdfd.tar.zst PeerTube-383bfc8356d444cbed1dab7e5c1b3bb16becfdfd.zip |
Client: responsive design
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r-- | client/config/webpack.common.js | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js index 80d77b400..6067d94e7 100644 --- a/client/config/webpack.common.js +++ b/client/config/webpack.common.js | |||
@@ -119,8 +119,25 @@ module.exports = function (options) { | |||
119 | 119 | ||
120 | { | 120 | { |
121 | test: /\.(sass|scss)$/, | 121 | test: /\.(sass|scss)$/, |
122 | use: ['css-to-string-loader', 'css-loader?sourceMap', 'resolve-url-loader', 'sass-loader?sourceMap'], | 122 | use: [ |
123 | exclude: [ helpers.root('src', 'styles') ] | 123 | 'css-to-string-loader', |
124 | 'css-loader?sourceMap', | ||
125 | 'resolve-url-loader', | ||
126 | { | ||
127 | loader: 'sass-loader', | ||
128 | options: { | ||
129 | sourceMap: true | ||
130 | } | ||
131 | }, | ||
132 | { | ||
133 | loader: 'sass-resources-loader', | ||
134 | options: { | ||
135 | resources: [ | ||
136 | helpers.root('src/sass/_variables.scss') | ||
137 | ] | ||
138 | } | ||
139 | } | ||
140 | ] | ||
124 | }, | 141 | }, |
125 | { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' }, | 142 | { test: /\.woff(2)?(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'url-loader?limit=10000&minetype=application/font-woff' }, |
126 | { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' }, | 143 | { test: /\.(ttf|eot|svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/, use: 'file-loader' }, |
@@ -133,7 +150,10 @@ module.exports = function (options) { | |||
133 | { | 150 | { |
134 | test: /\.html$/, | 151 | test: /\.html$/, |
135 | loader: 'raw-loader', | 152 | loader: 'raw-loader', |
136 | exclude: [ helpers.root('src/index.html'), helpers.root('src/standalone/videos/embed.html') ] | 153 | exclude: [ |
154 | helpers.root('src/index.html'), | ||
155 | helpers.root('src/standalone/videos/embed.html') | ||
156 | ] | ||
137 | } | 157 | } |
138 | 158 | ||
139 | ] | 159 | ] |
@@ -262,7 +282,8 @@ module.exports = function (options) { | |||
262 | new LoaderOptionsPlugin({ | 282 | new LoaderOptionsPlugin({ |
263 | options: { | 283 | options: { |
264 | sassLoader: { | 284 | sassLoader: { |
265 | precision: 10 | 285 | precision: 10, |
286 | includePaths: [ helpers.root('src/sass') ] | ||
266 | } | 287 | } |
267 | } | 288 | } |
268 | }), | 289 | }), |