Fix mixpanel script

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 301c3eb38a
commit aedb166a23
  1. 2
      project/templates/lilcity/index.html
  2. 5795
      web/src/js/third_party/mixpanel-2-latest.js
  3. 7
      web/webpack.config.js

@ -53,7 +53,7 @@
LIL_SERVER_TIME_DIFF = Math.floor((new Date().getTime()) / 1000) - parseInt(LIL_SERVER_TIME); LIL_SERVER_TIME_DIFF = Math.floor((new Date().getTime()) / 1000) - parseInt(LIL_SERVER_TIME);
USER_ID = "{{ request.user.id }}"; USER_ID = "{{ request.user.id }}";
COURSE_ID = "{{ course.id }}"; COURSE_ID = "{{ course.id }}";
MIXPANEL_CUSTOM_LIB_URL = "/static/mixpanel.js"; MIXPANEL_CUSTOM_LIB_URL = "/static/mixpanel-2-latest.js";
</script> </script>
{% block mixpanel %} {% block mixpanel %}
<!-- start Mixpanel --> <!-- start Mixpanel -->

File diff suppressed because it is too large Load Diff

@ -32,7 +32,12 @@ module.exports = {
{ {
test: /third_party\/.*\.js$/, test: /third_party\/.*\.js$/,
exclude: /(node_modules|bower_components)/, exclude: /(node_modules|bower_components)/,
loader: 'url-loader' use: {
loader: 'file-loader',
options: {
name: "[name].[ext]"
}
}
}, },
{ {
test: /\.css$/, test: /\.css$/,

Loading…
Cancel
Save