This repository has been archived by the owner on Jun 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14636 from Wikia/XW-4584
XW-4584 | Video does not disappear on edit.
- Loading branch information
Showing
10 changed files
with
701 additions
and
636 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
loglevel="warn" | ||
save-exact=true | ||
registry=https://artifactory.wikia-inc.com/artifactory/api/npm/wikia-npm/ | ||
@wikia:registry=https://artifactory.wikia-inc.com/artifactory/api/npm/wikia-npm/ |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,52 @@ | ||
const path = require('path'); | ||
const webpack = require('webpack'); | ||
const ExtractTextPlugin = require('extract-text-webpack-plugin'); | ||
|
||
module.exports = { | ||
context: __dirname, | ||
entry: { | ||
'bridge': './src/ad-engine.bridge.js', | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'js/build'), | ||
filename: '[name].js', | ||
libraryTarget: 'amd', | ||
library: 'ext.wikia.adEngine.bridge' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
include: path.resolve(__dirname, 'src'), | ||
use: 'babel-loader', | ||
}, | ||
{ | ||
test: /\.s?css$/, | ||
include: path.resolve(__dirname, 'src'), | ||
loader: ExtractTextPlugin.extract({ | ||
fallback: 'style-loader', | ||
use: [ | ||
'css-loader', | ||
'sass-loader' | ||
] | ||
}) | ||
} | ||
const compact = (collection) => Array.from(collection).filter(v => v != null); | ||
|
||
module.exports = function (env) { | ||
const hoistDependencies = env && env['hoist-dependencies']; | ||
|
||
return { | ||
context: __dirname, | ||
entry: { | ||
'bridge': './src/ad-engine.bridge.js', | ||
}, | ||
output: { | ||
path: path.resolve(__dirname, 'js/build'), | ||
filename: '[name].js', | ||
libraryTarget: 'amd', | ||
library: 'ext.wikia.adEngine.bridge' | ||
}, | ||
module: { | ||
rules: [ | ||
{ | ||
test: /\.jsx?$/, | ||
include: path.resolve(__dirname, 'src'), | ||
use: 'babel-loader', | ||
}, | ||
{ | ||
test: /\.s?css$/, | ||
include: path.resolve(__dirname, 'src'), | ||
loader: ExtractTextPlugin.extract({ | ||
fallback: 'style-loader', | ||
use: [ | ||
'css-loader', | ||
'sass-loader' | ||
] | ||
}) | ||
} | ||
] | ||
}, | ||
resolve: { | ||
modules: compact([ | ||
hoistDependencies ? path.resolve(__dirname, 'node_modules') : null, | ||
'node_modules' | ||
]) | ||
}, | ||
plugins: [ | ||
new ExtractTextPlugin({filename: '[name].scss'}), | ||
new webpack.optimize.ModuleConcatenationPlugin() | ||
] | ||
}, | ||
plugins: [ | ||
new ExtractTextPlugin({filename: '[name].scss'}) | ||
] | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters