aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/config/webpack.common.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-06-11 17:49:13 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-06-11 17:49:13 +0200
commit174d46578bb719c85686f9bb89abf4330ae4cac1 (patch)
tree34d7b791dfcd603cc7c2117780c071b74b3cf646 /client/config/webpack.common.js
parent127944aacb52721877449a1f202dc0add866ef39 (diff)
downloadPeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.tar.gz
PeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.tar.zst
PeerTube-174d46578bb719c85686f9bb89abf4330ae4cac1.zip
Fix prod build
Diffstat (limited to 'client/config/webpack.common.js')
-rw-r--r--client/config/webpack.common.js18
1 files changed, 12 insertions, 6 deletions
diff --git a/client/config/webpack.common.js b/client/config/webpack.common.js
index a81bca9d2..61347dba2 100644
--- a/client/config/webpack.common.js
+++ b/client/config/webpack.common.js
@@ -135,7 +135,13 @@ module.exports = function (options) {
135 test: /\.(sass|scss)$/, 135 test: /\.(sass|scss)$/,
136 use: [ 136 use: [
137 'css-to-string-loader', 137 'css-to-string-loader',
138 'css-loader?sourceMap', 138 {
139 loader: 'css-loader',
140 options: {
141 sourceMap: true,
142 importLoaders: 1
143 }
144 },
139 'resolve-url-loader', 145 'resolve-url-loader',
140 { 146 {
141 loader: 'sass-loader', 147 loader: 'sass-loader',
@@ -174,7 +180,7 @@ module.exports = function (options) {
174 */ 180 */
175 { 181 {
176 test: /\.(jpg|png|gif)$/, 182 test: /\.(jpg|png|gif)$/,
177 use: 'file-loader' 183 use: 'url-loader'
178 } 184 }
179 185
180 ] 186 ]
@@ -256,10 +262,10 @@ module.exports = function (options) {
256 */ 262 */
257 // Used by embed.html 263 // Used by embed.html
258 new CopyWebpackPlugin([ 264 new CopyWebpackPlugin([
259 { 265 // {
260 from: 'src/assets', 266 // from: 'src/assets',
261 to: 'assets' 267 // to: 'assets'
262 }, 268 // },
263 { 269 {
264 from: 'src/standalone', 270 from: 'src/standalone',
265 to: 'standalone' 271 to: 'standalone'